2 Copyright (C) 2009-2014, The AROS Development Team. All rights reserved.
8 uint32_t __aeabi_ul2f(uint64_t val
)
17 exp
= 64 - __builtin_clzl(val
);
20 v
= (uint32_t)(val
>> (exp
- 25));
22 v
= (uint32_t)(val
<< (25 - exp
));
27 if (0x02000000 == v
) exp
++;
30 result
= (v
>> 1) & 0x7fffff;
34 /* adapt Exponent to IEEESP-Format */
41 uint32_t __aeabi_l2f(int64_t val
)
46 return 0x80000000 | __aeabi_ul2f((uint64_t)(-val
));
48 return __aeabi_ul2f(val
);