mirror of
https://sourceware.org/git/glibc.git
synced 2025-09-02 16:01:20 +03:00
Update.
* sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Shave off 3 more bytes by using offset-less instructions when possible.
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
2003-02-22 Ulrich Drepper <drepper@redhat.com>
|
2003-02-22 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Shave
|
||||||
|
off 3 more bytes by using offset-less instructions when possible.
|
||||||
|
|
||||||
* Makefile: Add dependency for $(objpfx)version.d.
|
* Makefile: Add dependency for $(objpfx)version.d.
|
||||||
|
|
||||||
* eintr.c (eintr_source): Add unnecessary return but the compiler
|
* eintr.c (eintr_source): Add unnecessary return but the compiler
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2002 Free Software Foundation, Inc.
|
/* Copyright (C) 2002, 2003 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.
|
||||||
|
|
||||||
@@ -59,7 +59,11 @@ pthread_barrier_wait:
|
|||||||
je 3f
|
je 3f
|
||||||
|
|
||||||
/* There are more threads to come. */
|
/* There are more threads to come. */
|
||||||
|
#if CURR_EVENT == 0
|
||||||
|
movl (%ebx), %edx
|
||||||
|
#else
|
||||||
movl CURR_EVENT(%ebx), %edx
|
movl CURR_EVENT(%ebx), %edx
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Release the mutex. */
|
/* Release the mutex. */
|
||||||
LOCK
|
LOCK
|
||||||
@@ -75,7 +79,11 @@ pthread_barrier_wait:
|
|||||||
/* Don't return on spurious wakeups. The syscall does not change
|
/* Don't return on spurious wakeups. The syscall does not change
|
||||||
any register except %eax so there is no need to reload any of
|
any register except %eax so there is no need to reload any of
|
||||||
them. */
|
them. */
|
||||||
|
#if CURR_EVENT == 0
|
||||||
|
cmpl %edx, (%ebx)
|
||||||
|
#else
|
||||||
cmpl %edx, CURR_EVENT(%ebx)
|
cmpl %edx, CURR_EVENT(%ebx)
|
||||||
|
#endif
|
||||||
je,pn 8b
|
je,pn 8b
|
||||||
|
|
||||||
/* Note: %esi is still zero. */
|
/* Note: %esi is still zero. */
|
||||||
@@ -88,7 +96,11 @@ pthread_barrier_wait:
|
|||||||
/* The necessary number of threads arrived. */
|
/* The necessary number of threads arrived. */
|
||||||
3: movl INIT_COUNT(%ebx), %eax
|
3: movl INIT_COUNT(%ebx), %eax
|
||||||
movl %eax, LEFT(%ebx)
|
movl %eax, LEFT(%ebx)
|
||||||
|
#if CURR_EVENT == 0
|
||||||
|
incl (%ebx)
|
||||||
|
#else
|
||||||
incl CURR_EVENT(%ebx)
|
incl CURR_EVENT(%ebx)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Wake up all waiters. The count is a signed number in the kernel
|
/* Wake up all waiters. The count is a signed number in the kernel
|
||||||
so 0x7fffffff is the highest value. */
|
so 0x7fffffff is the highest value. */
|
||||||
|
Reference in New Issue
Block a user