4 #include "../int_lib.h"
19 #define LOWORDER(xy,xHi,xLo,yHi,yLo) \
20 (((((xHi)*(yHi) - (xy)) + (xHi)*(yLo)) + (xLo)*(yHi)) + (xLo)*(yLo))
22 static inline double __attribute__((always_inline
))
25 doublebits result
= { .d
= x
};
26 result
.x
&= UINT64_C(0x7fffffffffffffff);
30 static inline double __attribute__((always_inline
))
33 doublebits result
= { .d
= x
};
34 result
.x
&= UINT64_C(0xfffffffff8000000);
38 static inline int __attribute__((always_inline
))
39 different_sign(double x
, double y
)
41 doublebits xsignbit
= { .d
= x
}, ysignbit
= { .d
= y
};
42 int result
= (int)(xsignbit
.x
>> 63) ^ (int)(ysignbit
.x
>> 63);
46 #endif /* __DD_HEADER */