about summary refs log tree commit diff
path: root/sysdeps/libm-ieee754/e_expf.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>1998-03-01 11:06:48 +0000
committerRichard Henderson <rth@redhat.com>1998-03-01 11:06:48 +0000
commitc2e3af6ee68d6c36164d49df92ec501e9343475f (patch)
tree49dddb895bd8cce3ecd004b9e1eeb0350c5bf70d /sysdeps/libm-ieee754/e_expf.c
parent6356e131233c4cb9bc3befb4aa530cf2b2951110 (diff)
downloadglibc-c2e3af6ee68d6c36164d49df92ec501e9343475f.tar.gz
glibc-c2e3af6ee68d6c36164d49df92ec501e9343475f.tar.xz
glibc-c2e3af6ee68d6c36164d49df92ec501e9343475f.zip
1998-03-01 19:05 H.J. Lu (hjl@gnu.org) * sysdeps/libm-ieee754/e_exp.c (__ieee754_exp): Use __isinf. Changed type of TWO43, TWO52 from float to double. * sysdeps/libm-ieee754/e_expf.c (__ieee754_expf): Use __isinff. * sysdeps/libm-ieee754/s_exp2.c (__ieee754_exp2): Use __isinf. Changed type of TWO43 from float to double. * sysdeps/libm-ieee754/s_exp2f.c (__ieee754_exp2f): Fix a typo. Use __isinff.
1998-03-01 19:05  H.J. Lu  (hjl@gnu.org)

	* sysdeps/libm-ieee754/e_exp.c (__ieee754_exp): Use __isinf.
	Changed type of TWO43, TWO52 from float to double.
	* sysdeps/libm-ieee754/e_expf.c (__ieee754_expf): Use __isinff.
	* sysdeps/libm-ieee754/s_exp2.c (__ieee754_exp2): Use __isinf.
	Changed type of TWO43 from float to double.
	* sysdeps/libm-ieee754/s_exp2f.c (__ieee754_exp2f): Fix a typo.
	Use __isinff.
Diffstat (limited to 'sysdeps/libm-ieee754/e_expf.c')
-rw-r--r--sysdeps/libm-ieee754/e_expf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sysdeps/libm-ieee754/e_expf.c b/sysdeps/libm-ieee754/e_expf.c
index 08103aa271..c4a7b644fd 100644
--- a/sysdeps/libm-ieee754/e_expf.c
+++ b/sysdeps/libm-ieee754/e_expf.c
@@ -66,7 +66,6 @@ static const volatile float TWO127 = 1.7014118346e+38;
 float
 __ieee754_expf (float x)
 {
-  static const uint32_t a_minf = 0xff800000;
   static const float himark = 88.72283935546875;
   static const float lomark = -103.972084045410;
   /* Check for usual case.  */
@@ -144,7 +143,7 @@ __ieee754_expf (float x)
   /* Exceptional cases:  */
   else if (isless (x, himark))
     {
-      if (x == *(const float *) &a_minf)
+      if (__isinff (x))
 	/* e^-inf == 0, with no error.  */
 	return 0;
       else