Define HAVE_CMOV.
This commit is contained in:
parent
ddf4ffadf6
commit
c102b41c2b
|
@ -537,8 +537,15 @@ __pthread_rwlock_unlock:
|
||||||
movl $1, %ecx
|
movl $1, %ecx
|
||||||
leal WRITERS_WAKEUP(%edi), %eax
|
leal WRITERS_WAKEUP(%edi), %eax
|
||||||
cmpl $0, WRITERS_QUEUED(%edi)
|
cmpl $0, WRITERS_QUEUED(%edi)
|
||||||
cmovne %ecx, %edx
|
#ifdef HAVE_CMOV
|
||||||
cmovne %eax, %ebx
|
cmovnel %ecx, %edx
|
||||||
|
cmovnel %eax, %ebx
|
||||||
|
#else
|
||||||
|
je 0f
|
||||||
|
movl %ecx, %edx
|
||||||
|
movl %eax, %ebx
|
||||||
|
0:
|
||||||
|
#endif
|
||||||
movl $SYS_futex, %eax
|
movl $SYS_futex, %eax
|
||||||
int $0x80
|
int $0x80
|
||||||
|
|
||||||
|
|
|
@ -17,4 +17,5 @@
|
||||||
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||||
02111-1307 USA. */
|
02111-1307 USA. */
|
||||||
|
|
||||||
|
#define HAVE_CMOV 1
|
||||||
#include "../i486/lowlevelrwlock.S"
|
#include "../i486/lowlevelrwlock.S"
|
||||||
|
|
Loading…
Reference in New Issue