mirror of git://sourceware.org/git/glibc.git
* sysdeps/unix/sysv/linux/x86_64/sem_trywait.S (sem_trywait): Tiny
optimization.
This commit is contained in:
parent
6df7ffad19
commit
a2dd3360db
|
|
@ -1,5 +1,8 @@
|
||||||
2007-05-26 Ulrich Drepper <drepper@redhat.com>
|
2007-05-26 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/x86_64/sem_trywait.S (sem_trywait): Tiny
|
||||||
|
optimization.
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/sem_wait.c: Add missing break.
|
* sysdeps/unix/sysv/linux/sem_wait.c: Add missing break.
|
||||||
* sysdeps/unix/sysv/linux/sem_timedwait.c: Removed left-over
|
* sysdeps/unix/sysv/linux/sem_timedwait.c: Removed left-over
|
||||||
duplication of __sem_wait_cleanup.
|
duplication of __sem_wait_cleanup.
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
|
/* Copyright (C) 2002, 2003, 2005, 2007 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
|
Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
|
||||||
|
|
||||||
|
|
@ -37,7 +37,7 @@ sem_trywait:
|
||||||
2: testl %eax, %eax
|
2: testl %eax, %eax
|
||||||
jz 1f
|
jz 1f
|
||||||
|
|
||||||
leaq -1(%rax), %rdx
|
leal -1(%rax), %edx
|
||||||
LOCK
|
LOCK
|
||||||
cmpxchgl %edx, (%rdi)
|
cmpxchgl %edx, (%rdi)
|
||||||
jne 2b
|
jne 2b
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue