aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/i386/bits
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-08-25 11:45:26 +0000
committerUlrich Drepper <drepper@redhat.com>1998-08-25 11:45:26 +0000
commit6dbb7062ff2af970c6b8befecf71d7284d5813fb (patch)
tree491c0061190c228120bb48e2b3975572b4ba33e2 /sysdeps/i386/bits
parented1ac6a2d6c744bdbd4751efc86326ceafeac26c (diff)
downloadglibc-6dbb7062ff2af970c6b8befecf71d7284d5813fb.tar
glibc-6dbb7062ff2af970c6b8befecf71d7284d5813fb.tar.gz
glibc-6dbb7062ff2af970c6b8befecf71d7284d5813fb.tar.bz2
glibc-6dbb7062ff2af970c6b8befecf71d7284d5813fb.zip
Update.
1998-08-25 11:43 Ulrich Drepper <drepper@cygnus.com> * elf/elf.h: Add syminfo stuff and other DT_* from Solaris' ELF. 1998-08-25 Bernd Schmidt <crux@Pool.Informatik.RWTH-Aachen.DE> * argp/argp.h: Use __inline__ not inline. * sysdeps/i386/bits/select.h (FD_ZERO): Rewrite asm not to indicate an input register as being clobbered. * sysdeps/i386/memset.c (memset): Likewise. * sysdeps/i386/bzero.c (__bzero): Likewise. * sysdeps/i386/memcopy.h ({BYTE,WORD}_COPY_[FB]WD): Likewise. 1998-08-25 Andreas Jaeger <aj@arthur.rhein-neckar.de> * stdlib/jrand48_r.c (__jrand48_r): Set also upper half of result. Fixes PR libc/757 (Reported by Michael Creutz <creutz@bnl.gov).
Diffstat (limited to 'sysdeps/i386/bits')
-rw-r--r--sysdeps/i386/bits/select.h19
1 files changed, 12 insertions, 7 deletions
diff --git a/sysdeps/i386/bits/select.h b/sysdeps/i386/bits/select.h
index f2ab43ebbb..f21407f81f 100644
--- a/sysdeps/i386/bits/select.h
+++ b/sysdeps/i386/bits/select.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -24,12 +24,17 @@
#if defined __GNUC__ && __GNUC__ >= 2
# define __FD_ZERO(fdsetp) \
- __asm__ __volatile__ ("cld; rep; stosl" \
- : "=m" ((fdsetp)->fds_bits[__FDELT (__FD_SETSIZE)]) \
- : "a" (0), "c" (sizeof (__fd_set) \
- / sizeof (__fd_mask)), \
- "D" (&(fdsetp)->fds_bits[0]) \
- :"cx","di","memory")
+ do { \
+ int __d0, __d1; \
+ __asm__ __volatile__ ("cld; rep; stosl" \
+ : "=m" ((fdsetp)->fds_bits[__FDELT (__FD_SETSIZE)]),\
+ "=&c" (__d0), "=&D" (__d1) \
+ : "a" (0), "1" (sizeof (__fd_set) \
+ / sizeof (__fd_mask)), \
+ "2" (&(fdsetp)->fds_bits[0]) \
+ : "memory"); \
+ } while (0)
+
# define __FD_SET(fd, fdsetp) \
__asm__ __volatile__ ("btsl %1,%0" \
: "=m" ((fdsetp)->fds_bits[__FDELT (fd)]) \