mirror of
https://github.com/opencv/opencv.git
synced 2025-06-11 11:45:30 +08:00
softfloat f64_sqrt bug fix
This commit is contained in:
parent
b143f7100a
commit
945706a8e8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user