diff options
Diffstat (limited to 'softfloat/f64_to_i32.c')
-rw-r--r-- | softfloat/f64_to_i32.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/softfloat/f64_to_i32.c b/softfloat/f64_to_i32.c index b41aac6..8712c0a 100644 --- a/softfloat/f64_to_i32.c +++ b/softfloat/f64_to_i32.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, 2015, 2016 The Regents of the University of -California. All rights reserved. +Copyright 2011, 2012, 2013, 2014, 2015, 2016, 2017 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: @@ -74,9 +74,9 @@ int_fast32_t f64_to_i32( float64_t a, uint_fast8_t roundingMode, bool exact ) /*------------------------------------------------------------------------ *------------------------------------------------------------------------*/ if ( exp ) sig |= UINT64_C( 0x0010000000000000 ); - shiftDist = 0x42C - exp; + shiftDist = 0x427 - exp; if ( 0 < shiftDist ) sig = softfloat_shiftRightJam64( sig, shiftDist ); - return softfloat_roundPackToI32( sign, sig, roundingMode, exact ); + return softfloat_roundToI32( sign, sig, roundingMode, exact ); } |