diff options
author | Mark Brown <broonie@kernel.org> | 2019-04-04 16:20:34 +0700 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-04-04 16:20:34 +0700 |
commit | 95b78998253d09c0da966db625f102516bd9038e (patch) | |
tree | 1db88aed52ee5c6be21544cd07473a20f512af20 /lib/int_sqrt.c | |
parent | c8b45136789ae79f84fe8b44c3b27432ef2fa1b8 (diff) | |
parent | 21834d3e531d52c2b1f2182d472a7c37c0594f1b (diff) |
Merge tag 'v4.9.167' into linux-linaro-lsk-v4.9
This is the 4.9.167 stable release
Diffstat (limited to 'lib/int_sqrt.c')
-rw-r--r-- | lib/int_sqrt.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/int_sqrt.c b/lib/int_sqrt.c index 1ef4cc344977..1afb545a37c5 100644 --- a/lib/int_sqrt.c +++ b/lib/int_sqrt.c @@ -22,6 +22,9 @@ unsigned long int_sqrt(unsigned long x) return x; m = 1UL << (BITS_PER_LONG - 2); + while (m > x) + m >>= 2; + while (m != 0) { b = y + m; y >>= 1; |