]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - nptl/cond-perf.c
Use glibc_likely instead __builtin_expect.
[thirdparty/glibc.git] / nptl / cond-perf.c
index e37914e6b7c48d37244371618e7f624f8e2ff2e0..9c9488e2743f17eb4beeaadf45ef83a38a9f9bf9 100644 (file)
@@ -70,7 +70,7 @@ main (int argc, char *argv[])
   pthread_t th[nthreads];
   int i;
   for (i = 0; __builtin_expect (i < nthreads, 1); ++i)
-    if (__builtin_expect ((err = pthread_create (&th[i], NULL, cons, (void *) (long) i)) != 0, 0))
+    if (__glibc_unlikely ((err = pthread_create (&th[i], NULL, cons, (void *) (long) i)) != 0))
       printf ("pthread_create: %s\n", strerror (err));
 
   for (i = 0; __builtin_expect (i < nrounds, 1); ++i)