diff options
author | Andrew Waterman <andrew@sifive.com> | 2017-09-24 20:25:34 -0700 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2017-09-24 20:25:34 -0700 |
commit | bd85811c35ea38180d27440507fc222d585ef780 (patch) | |
tree | 214c6b615d7775f73da5ff9a94bd4a0a2772f9cf /softfloat/f32_to_i64.c | |
parent | b86f2a51f522f020ad0d90f598f4c501f41da232 (diff) | |
download | riscv-isa-sim-bd85811c35ea38180d27440507fc222d585ef780.zip riscv-isa-sim-bd85811c35ea38180d27440507fc222d585ef780.tar.gz riscv-isa-sim-bd85811c35ea38180d27440507fc222d585ef780.tar.bz2 |
Update SoftFloat
Diffstat (limited to 'softfloat/f32_to_i64.c')
-rw-r--r-- | softfloat/f32_to_i64.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/softfloat/f32_to_i64.c b/softfloat/f32_to_i64.c index b354f6c..48ab46f 100644 --- a/softfloat/f32_to_i64.c +++ b/softfloat/f32_to_i64.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: @@ -83,13 +83,13 @@ int_fast64_t f32_to_i64( float32_t a, uint_fast8_t roundingMode, bool exact ) sig64 = sig64Extra.v; extra = sig64Extra.extra; } - return softfloat_roundPackToI64( sign, sig64, extra, roundingMode, exact ); + return softfloat_roundToI64( sign, sig64, extra, roundingMode, exact ); #else extSig[indexWord( 3, 2 )] = sig<<8; extSig[indexWord( 3, 1 )] = 0; extSig[indexWord( 3, 0 )] = 0; if ( shiftDist ) softfloat_shiftRightJam96M( extSig, shiftDist, extSig ); - return softfloat_roundPackMToI64( sign, extSig, roundingMode, exact ); + return softfloat_roundMToI64( sign, extSig, roundingMode, exact ); #endif } |