]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - nptl/pthread_setcanceltype.c
Use glibc_likely instead __builtin_expect.
[thirdparty/glibc.git] / nptl / pthread_setcanceltype.c
index 0a7691f5b685a72a65fef3317e56082f5a51d5bf..fb1631f0ab18491e8f0c7a1441dafd564dd32afe 100644 (file)
@@ -55,7 +55,7 @@ __pthread_setcanceltype (type, oldtype)
         atomically since other bits could be modified as well.  */
       int curval = THREAD_ATOMIC_CMPXCHG_VAL (self, cancelhandling, newval,
                                              oldval);
-      if (__builtin_expect (curval == oldval, 1))
+      if (__glibc_likely (curval == oldval))
        {
          if (CANCEL_ENABLED_AND_CANCELED_AND_ASYNCHRONOUS (newval))
            {