mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
[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.
This commit is contained in:
@ -1,5 +1,10 @@
|
|||||||
2007-02-21 Ulrich Drepper <drepper@redhat.com>
|
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]
|
[BZ #3458]
|
||||||
* sysdeps/unix/sysv/linux/posix_madvise.c: New file.
|
* sysdeps/unix/sysv/linux/posix_madvise.c: New file.
|
||||||
* sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
|
* sysdeps/unix/sysv/linux/syscalls.list: Remove posix_madvise entry.
|
||||||
|
@ -10,7 +10,7 @@ RCSID("$NetBSD: e_fmod.S,v 1.4 1995/05/08 23:47:56 jtc Exp $")
|
|||||||
ENTRY(__ieee754_fmod)
|
ENTRY(__ieee754_fmod)
|
||||||
fldl 12(%esp)
|
fldl 12(%esp)
|
||||||
fldl 4(%esp)
|
fldl 4(%esp)
|
||||||
1: fprem1
|
1: fprem
|
||||||
fstsw %ax
|
fstsw %ax
|
||||||
sahf
|
sahf
|
||||||
jp 1b
|
jp 1b
|
||||||
|
@ -11,7 +11,7 @@ RCSID("$NetBSD: $")
|
|||||||
ENTRY(__ieee754_fmodf)
|
ENTRY(__ieee754_fmodf)
|
||||||
flds 8(%esp)
|
flds 8(%esp)
|
||||||
flds 4(%esp)
|
flds 4(%esp)
|
||||||
1: fprem1
|
1: fprem
|
||||||
fstsw %ax
|
fstsw %ax
|
||||||
sahf
|
sahf
|
||||||
jp 1b
|
jp 1b
|
||||||
|
@ -12,7 +12,7 @@ __ieee754_fmodl (long double x, long double y)
|
|||||||
{
|
{
|
||||||
long double res;
|
long double res;
|
||||||
|
|
||||||
asm ("1:\tfprem1\n"
|
asm ("1:\tfprem\n"
|
||||||
"fstsw %%ax\n"
|
"fstsw %%ax\n"
|
||||||
"sahf\n"
|
"sahf\n"
|
||||||
"jp 1b\n"
|
"jp 1b\n"
|
||||||
|
@ -21,18 +21,18 @@
|
|||||||
|
|
||||||
|
|
||||||
int
|
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
|
/* We have one problem: the kernel's MADV_DONTNEED does not
|
||||||
correspond to POSIX's POSIX_MADV_DONTNEED. The former simply
|
correspond to POSIX's POSIX_MADV_DONTNEED. The former simply
|
||||||
discards changes made to the memory without writing it back to
|
discards changes made to the memory without writing it back to
|
||||||
disk, if this would be necessary. The POSIX behavior does not
|
disk, if this would be necessary. The POSIX behavior does not
|
||||||
allow this. There is no functionality mapping the POSIX behavior
|
allow this. There is no functionality mapping the POSIX behavior
|
||||||
so far so we ignore that advise for now. */
|
so far so we ignore that advice for now. */
|
||||||
if (advise == POSIX_MADV_DONTNEED)
|
if (advice == POSIX_MADV_DONTNEED)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
INTERNAL_SYSCALL_DECL (err);
|
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);
|
return INTERNAL_SYSCALL_ERRNO (result, err);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user