1234567891011121314151617181920212223242526272829 |
- #include "int_lib.h"
- COMPILER_RT_ABI si_int
- __ctzdi2(di_int a)
- {
- dwords x;
- x.all = a;
- const si_int f = -(x.s.low == 0);
- return __builtin_ctz((x.s.high & f) | (x.s.low & ~f)) +
- (f & ((si_int)(sizeof(si_int) * CHAR_BIT)));
- }
|