Use glibc_likely instead __builtin_expect.
[jlayton/glibc.git] / debug / wmemmove_chk.c
index 59462cda3bf043bae9dc5273f0d0155ee39eb6ac..c82b4d0d23dcc5c480691248421c0406e61a20e7 100644 (file)
@@ -23,7 +23,7 @@
 wchar_t *
 __wmemmove_chk (wchar_t *s1, const wchar_t *s2, size_t n, size_t ns1)
 {
-  if (__builtin_expect (ns1 < n, 0))
+  if (__glibc_unlikely (ns1 < n))
     __chk_fail ();
   return (wchar_t *) memmove ((char *) s1, (char *) s2, n * sizeof (wchar_t));
 }