2 Copyright (C) 2009-2015, The AROS Development Team. All rights reserved.
8 uint64_t __aeabi_ul2d(uint64_t val
)
16 exp
= __builtin_clzl(val
);
26 if (0x40000000000000ULL
== val
) exp
++;
30 val
&= 0xfffffffffffffULL
;
31 exp
= 1022 + 64 - exp
;
39 uint64_t __aeabi_l2d(int64_t val
)
45 return (uint64_t)0x8000000000000000 | __aeabi_ul2d((uint64_t)-val
);
47 return __aeabi_ul2d((uint64_t)val
);