projects
/
h-e-n
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
musb: reenable high-speed for hostmode
[h-e-n]
/
lib
/
int_sqrt.c
diff --git
a/lib/int_sqrt.c
b/lib/int_sqrt.c
index
a5d2cdc
..
fd355a9
100644
(file)
--- a/
lib/int_sqrt.c
+++ b/
lib/int_sqrt.c
@@
-15,7
+15,7
@@
unsigned long int_sqrt(unsigned long x)
op = x;
res = 0;
- one = 1 << 30;
+ one = 1UL << (BITS_PER_LONG - 2);
while (one > op)
one >>= 2;