2 Copyright (C) 2009-2015, The AROS Development Team. All rights reserved.
8 uint64_t __aeabi_ui2d(uint32_t val
)
16 exp
= 32 - __builtin_clz(val
);
18 result
= ((uint64_t)val
) << (53 - exp
);
19 result
&= (uint64_t)0x000fffffffffffff;
23 result
|= (uint64_t)exp
<< 52;
28 uint64_t __aeabi_i2d(int32_t val
)
34 return (uint64_t)0x8000000000000000 | __aeabi_ui2d((uint32_t)-val
);
36 return __aeabi_ui2d((uint32_t)val
);