From 9d731d45e86ae28cf13b0094979577061e0e811c Mon Sep 17 00:00:00 2001
From: John Hauser <jhauser@eecs.berkeley.edu>
Date: Fri, 10 Feb 2017 12:35:21 -0800
Subject: Release 3c.  See "doc/SoftFloat-history.html".

---
 source/f128M_roundToInt.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

(limited to 'source/f128M_roundToInt.c')

diff --git a/source/f128M_roundToInt.c b/source/f128M_roundToInt.c
index 8cdb8b1..de1a27a 100644
--- a/source/f128M_roundToInt.c
+++ b/source/f128M_roundToInt.c
@@ -2,10 +2,10 @@
 /*============================================================================
 
 This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
-Package, Release 3b, by John R. Hauser.
+Package, Release 3c, by John R. Hauser.
 
-Copyright 2011, 2012, 2013, 2014 The Regents of the University of California.
-All rights reserved.
+Copyright 2011, 2012, 2013, 2014, 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:
@@ -180,8 +180,9 @@ void
         wordZ = wordA;
         carry = 0;
         if (
-               (roundingMode != softfloat_round_minMag)
-            && (signF128UI96( ui96 ) ^ (roundingMode == softfloat_round_max))
+            roundingMode
+                == (signF128UI96( ui96 ) ? softfloat_round_min
+                        : softfloat_round_max)
         ) {
             if ( extra || (wordA & extrasMask) ) {
                 wordZ += bit;
-- 
cgit v1.1