projects
/
libm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
prefer (uint)-1>>1 to ~((uint)1<<n), remove some unnecessary ()
[libm]
/
src
/
math
/
ilogbl.c
diff --git
a/src/math/ilogbl.c
b/src/math/ilogbl.c
index
099c81a
..
3b42c4d
100644
(file)
--- a/
src/math/ilogbl.c
+++ b/
src/math/ilogbl.c
@@
-21,7
+21,7
@@
int ilogbl(long double x)
}
if (e == 0x7fff)
/* in ld80 msb is set in inf */
- return m &
~((uint64_t)1<<63)
? FP_ILOGBNAN : INT_MAX;
+ return m &
(uint64_t)-1>>1
? FP_ILOGBNAN : INT_MAX;
return e - 0x3fff;
}
#endif