3 DWtype __ashrdi3(DWtype u, word_type b)
5 const DWunion uu = {.ll = u};
6 const word_type bm = (sizeof (Wtype) * BITS_PER_UNIT) - b;
13 /* w.s.high = 1..1 or 0..0 */
14 w.s.high = uu.s.high >> (sizeof (Wtype) * BITS_PER_UNIT - 1);
15 w.s.low = uu.s.high >> -bm;
17 const UWtype carries = (UWtype) uu.s.high << bm;
19 w.s.high = uu.s.high >> b;
20 w.s.low = ((UWtype) uu.s.low >> b) | carries;