diff options
Diffstat (limited to 'source/s_addCarryM.c')
-rw-r--r-- | source/s_addCarryM.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/s_addCarryM.c b/source/s_addCarryM.c index 0f3c997..d798c93 100644 --- a/source/s_addCarryM.c +++ b/source/s_addCarryM.c @@ -2,9 +2,9 @@ /*============================================================================ This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic -Package, Release 3a, by John R. Hauser. +Package, Release 3b, by John R. Hauser. -Copyright 2011, 2012, 2013, 2014, 2015 The Regents of the University of +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 @@ -58,7 +58,7 @@ uint_fast8_t wordA = aPtr[index]; wordZ = wordA + bPtr[index] + carry; zPtr[index] = wordZ; - carry = carry ? (wordZ <= wordA) : (wordZ < wordA); + if ( wordZ != wordA ) carry = (wordZ < wordA); if ( index == lastIndex ) break; index += wordIncr; } |