about summary refs log tree commit diff
path: root/sysdeps/ieee754/ldbl-128ibm/s_truncl.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2007-01-17 13:00:11 +0000
committerJakub Jelinek <jakub@redhat.com>2007-01-17 13:00:11 +0000
commitcd8127cc70f63e8d920880d32dd8887ab215d8ae (patch)
tree17a7618a81b7ece3d8c1f014436cea38bdafb965 /sysdeps/ieee754/ldbl-128ibm/s_truncl.c
parent4a2e03c66c725785ce7921f25a8220ad3d7fee8a (diff)
downloadglibc-cd8127cc70f63e8d920880d32dd8887ab215d8ae.tar.gz
glibc-cd8127cc70f63e8d920880d32dd8887ab215d8ae.tar.xz
glibc-cd8127cc70f63e8d920880d32dd8887ab215d8ae.zip
[BZ #2749]
* sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include 
<math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro. 
(__copysignl): Use signbit() for comparison. 
* sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for 
SET_LDOUBLE_WORDS64.
	[BZ #2423, #2749]
	* sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
	(__ceill): Remove calls to fegetround(), fesetround().
	* sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
	* sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
	* sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
2007-01-12  Steven Munroe  <sjmunroe@us.ibm.com>
	    Joe Kerian  <jkerian@us.us.ibm.com>

	[BZ #2749]
	* sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Include
	<math_ldbl_opt.h>.  Remove weak_alias.  Use long_double_symbol macro.
	(__copysignl): Use signbit() for comparison.
	* sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Correct parms for
	SET_LDOUBLE_WORDS64.

	[BZ #2423, #2749]
	* sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Don't include <fenv_libc.h>.
	(__ceill): Remove calls to fegetround(), fesetround().
	* sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
	* sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
	* sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
Diffstat (limited to 'sysdeps/ieee754/ldbl-128ibm/s_truncl.c')
-rw-r--r--sysdeps/ieee754/ldbl-128ibm/s_truncl.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sysdeps/ieee754/ldbl-128ibm/s_truncl.c b/sysdeps/ieee754/ldbl-128ibm/s_truncl.c
index d7bc47ee0d..ceace0d43e 100644
--- a/sysdeps/ieee754/ldbl-128ibm/s_truncl.c
+++ b/sysdeps/ieee754/ldbl-128ibm/s_truncl.c
@@ -1,6 +1,6 @@
 /* Truncate (toward zero) long double floating-point values.
    IBM extended format long double version.
-   Copyright (C) 2006 Free Software Foundation, Inc.
+   Copyright (C) 2006, 2007 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -22,7 +22,6 @@
    when it's coded in C.  */
 
 #include <math.h>
-#include <fenv_libc.h>
 #include <math_ldbl_opt.h>
 #include <float.h>
 #include <ieee754.h>
@@ -47,11 +46,9 @@ __truncl (x)
 					     __builtin_inf ()), 1))
     {
       double orig_xh;
-      int save_round = fegetround ();
 
       /* Long double arithmetic, including the canonicalisation below,
 	 only works in round-to-nearest mode.  */
-      fesetround (FE_TONEAREST);
 
       /* Convert the high double to integer.  */
       orig_xh = xh;
@@ -92,8 +89,6 @@ __truncl (x)
       /* Ensure we return -0 rather than +0 when appropriate.  */
       if (orig_xh < 0.0)
 	xh = -__builtin_fabs (xh);
-
-      fesetround (save_round);
     }
 
   return ldbl_pack (xh, xl);