From 945706a8e8c9de7c88f5f1489659a40d07272c5a Mon Sep 17 00:00:00 2001 From: Rostislav Vasilikhin Date: Mon, 25 Sep 2017 15:52:56 +0300 Subject: [PATCH] softfloat f64_sqrt bug fix --- modules/core/src/softfloat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/src/softfloat.cpp b/modules/core/src/softfloat.cpp index 7937d081ec..4532a9f9b7 100644 --- a/modules/core/src/softfloat.cpp +++ b/modules/core/src/softfloat.cpp @@ -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;