1 // SPDX-License-Identifier: GPL-2.0
5 __ashldi3(DWtype u
, word_type b
)
7 const DWunion uu
= {.ll
= u
};
8 const word_type bm
= (sizeof (Wtype
) * BITS_PER_UNIT
) - b
;
16 w
.s
.high
= (UWtype
) uu
.s
.low
<< -bm
;
18 const UWtype carries
= (UWtype
) uu
.s
.low
>> bm
;
20 w
.s
.low
= (UWtype
) uu
.s
.low
<< b
;
21 w
.s
.high
= ((UWtype
) uu
.s
.high
<< b
) | carries
;