aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2007-07-12 15:08:45 +0000
committerJakub Jelinek <jakub@redhat.com>2007-07-12 15:08:45 +0000
commit168ac89a0141b24fdc6a99a1444e10150b0301fa (patch)
tree389133bfaa05f85e7aaa1fa832fe3e607095e575
parent07483b08e889afda41483b17c784728f78fb480f (diff)
downloadglibc-168ac89a0141b24fdc6a99a1444e10150b0301fa.tar
glibc-168ac89a0141b24fdc6a99a1444e10150b0301fa.tar.gz
glibc-168ac89a0141b24fdc6a99a1444e10150b0301fa.tar.bz2
glibc-168ac89a0141b24fdc6a99a1444e10150b0301fa.zip
2007-04-01 Jakub Jelinek <jakub@redhat.com>
* sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success and 1 on failure.
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/ia64/fpu/fesetround.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 7ae409b9b7..5155c87e7d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2007-04-01 Jakub Jelinek <jakub@redhat.com>
+ * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success
+ and 1 on failure.
+
+2007-04-01 Jakub Jelinek <jakub@redhat.com>
+
* sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use
math_opt_barrier and math_force_eval macros.
diff --git a/sysdeps/ia64/fpu/fesetround.c b/sysdeps/ia64/fpu/fesetround.c
index 351bcc2f10..cb29b89827 100644
--- a/sysdeps/ia64/fpu/fesetround.c
+++ b/sysdeps/ia64/fpu/fesetround.c
@@ -26,7 +26,7 @@ fesetround (int round)
fenv_t fpsr;
if (round & ~3)
- return 0;
+ return 1;
/* Get the current state. */
__asm__ __volatile__ ("mov.m %0=ar.fpsr" : "=r" (fpsr));
@@ -37,6 +37,6 @@ fesetround (int round)
/* Put the new state in effect. */
__asm__ __volatile__ ("mov.m ar.fpsr=%0" :: "r" (fpsr) : "memory");
- return 1;
+ return 0;
}
libm_hidden_def (fesetround)