]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - string/test-memmem.c
Use glibc_likely instead __builtin_expect.
[thirdparty/glibc.git] / string / test-memmem.c
index 1b4e4b7ea029397e437bbfc71c83244dbd450752..caaa191d28a4afd38ac1031246c8ee7821b6b64e 100644 (file)
@@ -44,7 +44,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)