Commit 168b93e9 by Richard Guenther Committed by Richard Biener

re PR bootstrap/26059 (fenv.h use in libgcc-math)

2006-02-01  Richard Guenther  <rguenther@suse.de>

	PR bootstrap/26059
	* flt-32/e_expf.c: Remove fenv access.

From-SVN: r110470
parent 36cbd091
2006-02-01 Richard Guenther <rguenther@suse.de> 2006-02-01 Richard Guenther <rguenther@suse.de>
PR bootstrap/26059
* flt-32/e_expf.c: Remove fenv access.
2006-02-01 Richard Guenther <rguenther@suse.de>
PR bootstrap/26055 PR bootstrap/26055
* configure.ac: Disable libgcc-math if we cannot mix * configure.ac: Disable libgcc-math if we cannot mix
declaration of __isinf and math.h inclusion. declaration of __isinf and math.h inclusion.
......
...@@ -53,7 +53,6 @@ ...@@ -53,7 +53,6 @@
#include <float.h> #include <float.h>
#include <ieee754.h> #include <ieee754.h>
#include <math.h> #include <math.h>
#include <fenv.h>
#include <inttypes.h> #include <inttypes.h>
#include <math_private.h> #include <math_private.h>
...@@ -84,12 +83,6 @@ __ieee754_expf (float x) ...@@ -84,12 +83,6 @@ __ieee754_expf (float x)
double x22, t, result, dx; double x22, t, result, dx;
float n, delta; float n, delta;
union ieee754_double ex2_u; union ieee754_double ex2_u;
fenv_t oldenv;
feholdexcept (&oldenv);
#ifdef FE_TONEAREST
fesetround (FE_TONEAREST);
#endif
/* Calculate n. */ /* Calculate n. */
n = x * M_1_LN2 + THREEp22; n = x * M_1_LN2 + THREEp22;
...@@ -119,8 +112,6 @@ __ieee754_expf (float x) ...@@ -119,8 +112,6 @@ __ieee754_expf (float x)
x22 = (0.5000000496709180453 * dx + 1.0000001192102037084) * dx + delta; x22 = (0.5000000496709180453 * dx + 1.0000001192102037084) * dx + delta;
/* Return result. */ /* Return result. */
fesetenv (&oldenv);
result = x22 * ex2_u.d + ex2_u.d; result = x22 * ex2_u.d + ex2_u.d;
return (float) result; return (float) result;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment