diff options
author | Ulrich Drepper <drepper@redhat.com> | 2007-02-21 19:13:15 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2007-02-21 19:13:15 +0000 |
commit | cdfd61e1eefa76d6d21764d71a2b649eb1493d9d (patch) | |
tree | 28598594a65e95727a4472c0358341c035bda1d3 | |
parent | 8889e7aa461ae71467783ca630638b474ad17d14 (diff) | |
download | glibc-cdfd61e1eefa76d6d21764d71a2b649eb1493d9d.tar.gz glibc-cdfd61e1eefa76d6d21764d71a2b649eb1493d9d.tar.xz glibc-cdfd61e1eefa76d6d21764d71a2b649eb1493d9d.zip |
[BZ #3325]
* sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem. * sysdeps/i386/fpu/e_fmodl.c: Likewise. * sysdeps/i386/fpu/e_fmod.S: Likewise.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | sysdeps/i386/fpu/e_fmod.S | 2 | ||||
-rw-r--r-- | sysdeps/i386/fpu/e_fmodf.S | 2 | ||||
-rw-r--r-- | sysdeps/i386/fpu/e_fmodl.c | 2 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/posix_madvise.c | 8 |
5 files changed, 12 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog index 152b4d2202..e150f9bbd8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2007-02-21 Ulrich Drepper <drepper@redhat.com> + [BZ #3325] + * sysdeps/i386/fpu/e_fmodf.S: Revert last changes, keep using fprem. + * sysdeps/i386/fpu/e_fmodl.c: Likewise. + * sysdeps/i386/fpu/e_fmod.S: Likewise. + [BZ #3458] * sysdeps/unix/sysv/linux/posix_madvise.c: New file. * sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry. diff --git a/sysdeps/i386/fpu/e_fmod.S b/sysdeps/i386/fpu/e_fmod.S index e801286a9b..4cf6e92054 100644 --- a/sysdeps/i386/fpu/e_fmod.S +++ b/sysdeps/i386/fpu/e_fmod.S @@ -10,7 +10,7 @@ RCSID("$NetBSD: e_fmod.S,v 1.4 1995/05/08 23:47:56 jtc Exp $") ENTRY(__ieee754_fmod) fldl 12(%esp) fldl 4(%esp) -1: fprem1 +1: fprem fstsw %ax sahf jp 1b diff --git a/sysdeps/i386/fpu/e_fmodf.S b/sysdeps/i386/fpu/e_fmodf.S index 1850af098e..bbce40976d 100644 --- a/sysdeps/i386/fpu/e_fmodf.S +++ b/sysdeps/i386/fpu/e_fmodf.S @@ -11,7 +11,7 @@ RCSID("$NetBSD: $") ENTRY(__ieee754_fmodf) flds 8(%esp) flds 4(%esp) -1: fprem1 +1: fprem fstsw %ax sahf jp 1b diff --git a/sysdeps/i386/fpu/e_fmodl.c b/sysdeps/i386/fpu/e_fmodl.c index 97a06d0016..c7c9a60456 100644 --- a/sysdeps/i386/fpu/e_fmodl.c +++ b/sysdeps/i386/fpu/e_fmodl.c @@ -12,7 +12,7 @@ __ieee754_fmodl (long double x, long double y) { long double res; - asm ("1:\tfprem1\n" + asm ("1:\tfprem\n" "fstsw %%ax\n" "sahf\n" "jp 1b\n" diff --git a/sysdeps/unix/sysv/linux/posix_madvise.c b/sysdeps/unix/sysv/linux/posix_madvise.c index d0e476b61e..880b17ef31 100644 --- a/sysdeps/unix/sysv/linux/posix_madvise.c +++ b/sysdeps/unix/sysv/linux/posix_madvise.c @@ -21,18 +21,18 @@ int -posix_madvise (void *addr, size_t len, int advise) +posix_madvise (void *addr, size_t len, int advice) { /* We have one problem: the kernel's MADV_DONTNEED does not correspond to POSIX's POSIX_MADV_DONTNEED. The former simply discards changes made to the memory without writing it back to disk, if this would be necessary. The POSIX behavior does not allow this. There is no functionality mapping the POSIX behavior - so far so we ignore that advise for now. */ - if (advise == POSIX_MADV_DONTNEED) + so far so we ignore that advice for now. */ + if (advice == POSIX_MADV_DONTNEED) return 0; INTERNAL_SYSCALL_DECL (err); - int result = INTERNAL_SYSCALL (madvise, err, 3, addr, len, advise); + int result = INTERNAL_SYSCALL (madvise, err, 3, addr, len, advice); return INTERNAL_SYSCALL_ERRNO (result, err); } |