about summary refs log tree commit diff
path: root/benchtests/bench-memmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'benchtests/bench-memmem.c')
-rw-r--r--benchtests/bench-memmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchtests/bench-memmem.c b/benchtests/bench-memmem.c
index 6fe3bc666b..763fb5c5da 100644
--- a/benchtests/bench-memmem.c
+++ b/benchtests/bench-memmem.c
@@ -43,7 +43,7 @@ simple_memmem (const void *haystack, size_t haystack_len, const void *needle,
 
   /* Sanity check, otherwise the loop might search through the whole
      memory.  */
-  if (__builtin_expect (haystack_len < needle_len, 0))
+  if (__glibc_unlikely (haystack_len < needle_len))
     return NULL;
 
   for (begin = (const char *) haystack; begin <= last_possible; ++begin)