Skip to content

Commit

Permalink
softfloat f64_sqrt bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
savuor committed Sep 25, 2017
1 parent b143f71 commit 945706a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/core/src/softfloat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1911,7 +1911,7 @@ static float64_t f64_sqrt( float64_t a )
sigZ = ((uint_fast64_t) sig32Z<<32 | 1<<5) + ((uint_fast64_t) q<<3);
/*------------------------------------------------------------------------
*------------------------------------------------------------------------*/
if ( (sigZ & 0x1FF) < 1<<5 ) {
if ( (sigZ & 0x1FF) < 0x22 ) {
sigZ &= ~(uint_fast64_t) 0x3F;
shiftedSigZ = sigZ>>6;
rem = (sigA<<52) - shiftedSigZ * shiftedSigZ;
Expand Down

0 comments on commit 945706a

Please sign in to comment.