2 * Copyright 2004-2009 Analog Devices Inc.
4 * Licensed under the GPL-2 or later.
9 #ifdef CONFIG_ARITHMETIC_OPS_L1
10 DItype
__ashldi3(DItype u
, word_type b
)__attribute__((l1_text
));
13 DItype
__ashldi3(DItype u
, word_type b
)
24 bm
= (sizeof(SItype
) * BITS_PER_UNIT
) - b
;
27 w
.s
.high
= (USItype
) uu
.s
.low
<< -bm
;
29 USItype carries
= (USItype
) uu
.s
.low
>> bm
;
30 w
.s
.low
= (USItype
) uu
.s
.low
<< b
;
31 w
.s
.high
= ((USItype
) uu
.s
.high
<< b
) | carries
;