From a95b44df9d142a49f3e1bfe4a60d259ed41ca247 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Tue, 1 Mar 2016 16:24:05 -0800 Subject: Upgrade to latest SoftFloat --- softfloat/ui64_to_f32.c | 95 +++++++++++++++++++++++++++++++++---------------- 1 file changed, 64 insertions(+), 31 deletions(-) mode change 100755 => 100644 softfloat/ui64_to_f32.c (limited to 'softfloat/ui64_to_f32.c') diff --git a/softfloat/ui64_to_f32.c b/softfloat/ui64_to_f32.c old mode 100755 new mode 100644 index 82afbdc..d67c6f9 --- a/softfloat/ui64_to_f32.c +++ b/softfloat/ui64_to_f32.c @@ -1,31 +1,64 @@ - -#include -#include "platform.h" -#include "primitives.h" -#include "internals.h" -#include "softfloat.h" - -float32_t ui64_to_f32( uint_fast64_t a ) -{ - int shiftCount; - union ui32_f32 u; - uint_fast32_t sig; - - shiftCount = softfloat_countLeadingZeros64( a ) - 40; - if ( 0 <= shiftCount ) { - u.ui = - a ? packToF32UI( - 0, 0x95 - shiftCount, (uint_fast32_t) a< +#include "platform.h" +#include "internals.h" +#include "softfloat.h" + +float32_t ui64_to_f32( uint64_t a ) +{ + int_fast8_t shiftCount; + union ui32_f32 u; + uint_fast32_t sig; + + shiftCount = softfloat_countLeadingZeros64( a ) - 40; + if ( 0 <= shiftCount ) { + u.ui = + a ? packToF32UI( + 0, 0x95 - shiftCount, (uint_fast32_t) a<