about summary refs log tree commit diff
path: root/elf/dl-misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/dl-misc.c')
-rw-r--r--elf/dl-misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/dl-misc.c b/elf/dl-misc.c
index e5c76a75a0..ad2d8ac964 100644
--- a/elf/dl-misc.c
+++ b/elf/dl-misc.c
@@ -396,7 +396,7 @@ __signal_safe_memalign (size_t boundary, size_t size)
     boundary = sizeof (*header);
 
   /* Boundary must be a power of two.  */
-  if ((boundary & (boundary - 1)) == 0)
+  if (!powerof2(boundary))
     return NULL;
 
   size_t pg = GLRO (dl_pagesize);