aboutsummaryrefslogtreecommitdiff
path: root/source/extF80_sqrt.c
diff options
context:
space:
mode:
authorJohn Hauser <jhauser@eecs.berkeley.edu>2015-02-19 14:09:32 -0800
committerJohn Hauser <jhauser@eecs.berkeley.edu>2015-02-19 14:09:32 -0800
commitc07232ca9ed081c229d03c3c38e10b776d0becf8 (patch)
treea2482d5229ee7e3873e3e839068d37d3c586b522 /source/extF80_sqrt.c
parent6e7b8b549aa62cc10f85ec08774c13dab74cba7c (diff)
downloadberkeley-softfloat-3-c07232ca9ed081c229d03c3c38e10b776d0becf8.zip
berkeley-softfloat-3-c07232ca9ed081c229d03c3c38e10b776d0becf8.tar.gz
berkeley-softfloat-3-c07232ca9ed081c229d03c3c38e10b776d0becf8.tar.bz2
Fixed some bugs affecting a few processors. Reboot the official release
date (for the last time) to be 2015 Feb 16.
Diffstat (limited to 'source/extF80_sqrt.c')
-rw-r--r--source/extF80_sqrt.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/extF80_sqrt.c b/source/extF80_sqrt.c
index f85e3e7..a73278b 100644
--- a/source/extF80_sqrt.c
+++ b/source/extF80_sqrt.c
@@ -4,10 +4,10 @@
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3, by John R. Hauser.
-Copyright 2011, 2012, 2013, 2014 The Regents of the University of California
-(Regents). All Rights Reserved. Redistribution and use in source and binary
-forms, with or without modification, are permitted provided that the following
-conditions are met:
+Copyright 2011, 2012, 2013, 2014, 2015 The Regents of the University of
+California (Regents). All Rights Reserved. Redistribution and use in source
+and binary forms, with or without modification, are permitted provided that
+the following conditions are met:
Redistributions of source code must retain the above copyright notice,
this list of conditions, and the following two paragraphs of disclaimer.
@@ -127,7 +127,7 @@ extFloat80_t extF80_sqrt( extFloat80_t a )
/*------------------------------------------------------------------------
*------------------------------------------------------------------------*/
if ( (q & 0xFFFFFF) <= 2 ) {
- q &= ~0xFFFF;
+ q &= ~(uint_fast64_t) 0xFFFF;
sigZExtra = (uint64_t) (q<<39);
term = softfloat_mul64ByShifted32To128( x64 + (q>>27), q );
x64 = (uint_fast64_t) (uint32_t) (q<<5) * (uint32_t) q;