summary refs log tree commit diff
path: root/linuxthreads/mutex.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-08-03 07:29:27 +0000
committerUlrich Drepper <drepper@redhat.com>2000-08-03 07:29:27 +0000
commit139a4d957a49107e0528e60913f3eb565c691da3 (patch)
tree0d37efcd9c246629ad935e631efb83006eed6faf /linuxthreads/mutex.c
parentaaf688e85f11a2e6d2fc7b9afbf81e15e146f766 (diff)
downloadglibc-139a4d957a49107e0528e60913f3eb565c691da3.tar.gz
glibc-139a4d957a49107e0528e60913f3eb565c691da3.tar.xz
glibc-139a4d957a49107e0528e60913f3eb565c691da3.zip
Update.
2000-08-03  Ulrich Drepper  <drepper@redhat.com>

	* iconvdata/big5.c: Updated.
	Patch by Tung-Han Hsieh <thhsieh@twcpro.phys.ntu.edu.tw>.
Diffstat (limited to 'linuxthreads/mutex.c')
-rw-r--r--linuxthreads/mutex.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/linuxthreads/mutex.c b/linuxthreads/mutex.c
index d7674ffadd..ae070e5b93 100644
--- a/linuxthreads/mutex.c
+++ b/linuxthreads/mutex.c
@@ -118,7 +118,8 @@ int __pthread_mutex_timedlock (pthread_mutex_t *mutex,
   pthread_descr self;
   int res;
 
-  if (abstime->tv_nsec < 0 || abstime->tv_nsec >= 1000000000)
+  if (__builtin_expect (abstime->tv_nsec, 0) < 0
+      || __builtin_expect (abstime->tv_nsec, 0) >= 1000000000)
     return EINVAL;
 
   switch(mutex->__m_kind) {