Define HAVE_CMOV.

This commit is contained in:
Ulrich Drepper 2002-11-28 23:52:24 +00:00
parent ddf4ffadf6
commit c102b41c2b
2 changed files with 10 additions and 2 deletions

View File

@ -537,8 +537,15 @@ __pthread_rwlock_unlock:
movl $1, %ecx
leal WRITERS_WAKEUP(%edi), %eax
cmpl $0, WRITERS_QUEUED(%edi)
cmovne %ecx, %edx
cmovne %eax, %ebx
#ifdef HAVE_CMOV
cmovnel %ecx, %edx
cmovnel %eax, %ebx
#else
je 0f
movl %ecx, %edx
movl %eax, %ebx
0:
#endif
movl $SYS_futex, %eax
int $0x80

View File

@ -17,4 +17,5 @@
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
#define HAVE_CMOV 1
#include "../i486/lowlevelrwlock.S"