]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* sysdeps/unix/sysv/linux/x86_64/sem_trywait.S (sem_trywait): Tiny
authorUlrich Drepper <drepper@redhat.com>
Sat, 26 May 2007 21:47:28 +0000 (21:47 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 26 May 2007 21:47:28 +0000 (21:47 +0000)
optimization.

nptl/ChangeLog
nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S

index 0cd8193452b466e6456ec8f84b9c2f50e3762b33..2ac2c44078d2a2bc03678eaf31ebba6874a361ce 100644 (file)
@@ -1,5 +1,8 @@
 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_timedwait.c: Removed left-over
        duplication of __sem_wait_cleanup.
index 6b77dfc0d83b592c0d802faab20e27bdfaa8fc7f..643090f0656ac5e2820ff73166c09166c006d9dc 100644 (file)
@@ -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.
    Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
 
@@ -37,7 +37,7 @@ sem_trywait:
 2:     testl   %eax, %eax
        jz      1f
 
-       leaq    -1(%rax), %rdx
+       leal    -1(%rax), %edx
        LOCK
        cmpxchgl %edx, (%rdi)
        jne     2b