From bd85811c35ea38180d27440507fc222d585ef780 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Sun, 24 Sep 2017 20:25:34 -0700 Subject: Update SoftFloat --- softfloat/i64_to_f32.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'softfloat/i64_to_f32.c') diff --git a/softfloat/i64_to_f32.c b/softfloat/i64_to_f32.c index ae68ad9..e8a3494 100644 --- a/softfloat/i64_to_f32.c +++ b/softfloat/i64_to_f32.c @@ -2,10 +2,10 @@ /*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic -Package, Release 3a, by John R. Hauser. +Package, Release 3d, by John R. Hauser. -Copyright 2011, 2012, 2013, 2014 The Regents of the University of California. -All rights reserved. +Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of +California. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -44,26 +44,26 @@ float32_t i64_to_f32( int64_t a ) { bool sign; uint_fast64_t absA; - int_fast8_t shiftCount; + int_fast8_t shiftDist; union ui32_f32 u; uint_fast32_t sig; sign = (a < 0); absA = sign ? -(uint_fast64_t) a : (uint_fast64_t) a; - shiftCount = softfloat_countLeadingZeros64( absA ) - 40; - if ( 0 <= shiftCount ) { + shiftDist = softfloat_countLeadingZeros64( absA ) - 40; + if ( 0 <= shiftDist ) { u.ui = a ? packToF32UI( - sign, 0x95 - shiftCount, (uint_fast32_t) absA<