]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - string/memmem.c
Use glibc_likely instead __builtin_expect.
[thirdparty/glibc.git] / string / memmem.c
index 93e5e18c6652f1b9afef19d4d6640f8482a9c08c..b2842fe57f949f94614b7858316938050f80752d 100644 (file)
@@ -53,7 +53,7 @@ memmem (const void *haystack_start, size_t haystack_len,
 
   /* 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;
 
   /* Use optimizations in memchr when possible, to reduce the search