From cff08c81107ae1c8b1581b5e0a534938fd67fc45 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 1 Mar 2004 08:47:37 +0000 Subject: Update. 2004-03-01 Ulrich Drepper * 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. --- .../unix/sysv/linux/i386/i486/pthread_cond_timedwait.S | 10 ++++------ nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S | 12 +++++------- 2 files changed, 9 insertions(+), 13 deletions(-) (limited to 'nptl/sysdeps/unix') diff --git a/nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S b/nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S index 8e6e4bfdf5..b1c32ea4b1 100644 --- a/nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S +++ b/nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S @@ -190,16 +190,14 @@ __pthread_cond_timedwait: movl wakeup_seq+4(%ebx), %edx cmpl 16(%esp), %edx - ja 7f - jb 15f + jne 7f cmpl 12(%esp), %edi - jbe 15f + je 15f 7: cmpl %ecx, %edx - ja 9f - jb 15f + jne 9f cmp %eax, %edi - ja 9f + jne 9f 15: cmpl $-ETIMEDOUT, %esi jne 8b 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 , 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) -- cgit 1.4.1