diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-01-31 08:11:53 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-01-31 08:11:53 +0000 |
commit | 8a94dfe44e23e89b366019c9b4cad1a3cc1d853b (patch) | |
tree | a6b4a42d962fa7a4904d293784f6531c77c1b552 /sysdeps/i386 | |
parent | 4d76a0ec18ca374bbb5a2cf15b80515e246a135b (diff) | |
download | glibc-8a94dfe44e23e89b366019c9b4cad1a3cc1d853b.zip glibc-8a94dfe44e23e89b366019c9b4cad1a3cc1d853b.tar.gz glibc-8a94dfe44e23e89b366019c9b4cad1a3cc1d853b.tar.bz2 |
Update.
* sysdeps/alpha/fpu/feholdexcpt.c: Correct return value according to
the standard.
* sysdeps/alpha/fpu/fesetround.c: Likewise.
* sysdeps/arm/fpu/feholdexcpt.c: Likewise.
* sysdeps/arm/fpu/fesetround.c: Likewise.
* sysdeps/generic/feholdexcpt.c: Likewise.
* sysdeps/generic/fesetround.c: Likewise.
* sysdeps/i386/fpu/feholdexcpt.c: Likewise.
* sysdeps/i386/fpu/fesetround.c: Likewise.
* sysdeps/m68k/fpu/feholdexcpt.c: Likewise.
* sysdeps/m68k/fpu/fesetround.c: Likewise.
* sysdeps/mips/fpu/fesetround.c: Likewise.
* sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
* sysdeps/powerpc/fpu/fesetround.c: Likewise.
* sysdeps/sparc/fpu/feholdexcpt.c: Likewise.
* sysdeps/sparc/fpu/fesetround.c: Likewise.
Patch by Miloslav Trmac <mitr@volny.cz>.
Diffstat (limited to 'sysdeps/i386')
-rw-r--r-- | sysdeps/i386/fpu/feholdexcpt.c | 2 | ||||
-rw-r--r-- | sysdeps/i386/fpu/fesetround.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/i386/fpu/feholdexcpt.c b/sysdeps/i386/fpu/feholdexcpt.c index f056abb..022625d 100644 --- a/sysdeps/i386/fpu/feholdexcpt.c +++ b/sysdeps/i386/fpu/feholdexcpt.c @@ -32,5 +32,5 @@ feholdexcept (fenv_t *envp) work = envp->__control_word | 0x3f; __asm__ ("fldcw %0" : : "m" (*&work)); - return 1; + return 0; } diff --git a/sysdeps/i386/fpu/fesetround.c b/sysdeps/i386/fpu/fesetround.c index 844c586..9b5b089 100644 --- a/sysdeps/i386/fpu/fesetround.c +++ b/sysdeps/i386/fpu/fesetround.c @@ -27,12 +27,12 @@ fesetround (int round) if ((round & ~0xc00) != 0) /* ROUND is no valid rounding mode. */ - return 0; + return 1; __asm__ ("fnstcw %0" : "=m" (*&cw)); cw &= ~0xc00; cw |= round; __asm__ ("fldcw %0" : : "m" (*&cw)); - return 1; + return 0; } |