From: Jakub Jelinek Date: Thu, 12 Jul 2007 15:08:45 +0000 (+0000) Subject: 2007-04-01 Jakub Jelinek X-Git-Tag: cvs/fedora-glibc-2_5-20070712T1701~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=168ac89a0141b24fdc6a99a1444e10150b0301fa;p=thirdparty%2Fglibc.git 2007-04-01 Jakub Jelinek * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success and 1 on failure. --- diff --git a/ChangeLog b/ChangeLog index 7ae409b9b74..5155c87e7dd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-04-01 Jakub Jelinek + + * sysdeps/ia64/fpu/fesetround.c (fesetround): Return 0 on success + and 1 on failure. + 2007-04-01 Jakub Jelinek * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Use diff --git a/sysdeps/ia64/fpu/fesetround.c b/sysdeps/ia64/fpu/fesetround.c index 351bcc2f105..cb29b898274 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)