summaryrefslogtreecommitdiff
path: root/nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-03-01 08:47:37 +0000
committerUlrich Drepper <drepper@redhat.com>2004-03-01 08:47:37 +0000
commitcff08c81107ae1c8b1581b5e0a534938fd67fc45 (patch)
treeec76e6e96ba1b0f8695796be0a9d8e63bd193052 /nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
parentb7fe377cbaef61115deb7dbac1b92eb41e07f380 (diff)
Update.
2004-03-01 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S (__pthread_cond_timedwait): Optimize wakeup test. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S (__pthread_cond_wait): Likewise. * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Likewise. * sysdeps/pthread/pthread_cond_timedwait.c (__pthread_cond_timedwait): Likewise.
Diffstat (limited to 'nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S')
-rw-r--r--nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S12
1 files changed, 5 insertions, 7 deletions
diff --git a/nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S b/nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
index b38fd6bf3b..38cb36ae91 100644
--- a/nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
+++ b/nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002, 2003 Free Software Foundation, Inc.
+/* Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
@@ -133,16 +133,14 @@ __pthread_cond_wait:
movl wakeup_seq+4(%ebx), %edx
cmpl 8(%esp), %edx
- ja 7f
- jb 8b
+ jne 7f
cmpl 4(%esp), %edi
- jbe 8b
+ je 8b
7: cmpl %ecx, %edx
- ja 9f
- jb 8b
+ jne 9f
cmp %eax, %edi
- jna 8b
+ je 8b
9: addl $1, woken_seq(%ebx)
adcl $0, woken_seq+4(%ebx)