Use glibc_likely instead __builtin_expect.
[jlayton/glibc.git] / elf / dl-writev.h
index ad67c1d82c8aeab88954d307d6a2ed4f16b97e37..a5ce6c51666c34c4de2d27c6999416600b769fa7 100644 (file)
@@ -42,7 +42,7 @@ _dl_writev (int fd, const struct iovec *iov, size_t niov)
      errno when it's being used by another thread that cares about it.
      Yet we must be sure not to try calling the lock functions before
      the thread library is fully initialized.  */
-  if (__builtin_expect (INTUSE (_dl_starting_up), 0))
+  if (__glibc_unlikely (INTUSE (_dl_starting_up)))
     __writev (fd, iov, niov);
   else
     {