summaryrefslogtreecommitdiff
path: root/sysdeps/powerpc
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/powerpc')
-rw-r--r--sysdeps/powerpc/bits/fenvinline.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/powerpc/bits/fenvinline.h b/sysdeps/powerpc/bits/fenvinline.h
index 89ea38a4f8..f2d095a72f 100644
--- a/sysdeps/powerpc/bits/fenvinline.h
+++ b/sysdeps/powerpc/bits/fenvinline.h
@@ -75,7 +75,7 @@
int __e = __excepts; \
int __ret = 0; \
if (__builtin_constant_p (__e) \
- && powerof2 (__e) \
+ && __builtin_popcount (__e) == 1 \
&& __e != FE_INVALID) \
{ \
__MTFSB1 ((__builtin_clz (__e))); \
@@ -91,7 +91,7 @@
int __e = __excepts; \
int __ret = 0; \
if (__builtin_constant_p (__e) \
- && powerof2 (__e) \
+ && __builtin_popcount (__e) == 1 \
&& __e != FE_INVALID) \
{ \
__MTFSB0 ((__builtin_clz (__e))); \