public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] bits/mathinline.h
@ 2003-06-04 20:20 Jakub Jelinek
  2003-06-04 21:33 ` Ulrich Drepper
  0 siblings, 1 reply; 2+ messages in thread
From: Jakub Jelinek @ 2003-06-04 20:20 UTC (permalink / raw)
  To: Ulrich Drepper, Roland McGrath; +Cc: Glibc hackers

Hi!

Bernds patch also put __sqrtl inside of __FAST_MATH__, but
__sqrtl is used by asinh, acosh, atanh and hypot outside of __FAST_MATH__.

2003-06-04  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh,
	hypot, logb): Protect with #ifdef __FAST_MATH__.

2003-06-04  Thorsten Kukuk  <kukuk@suse.de>

	* sysdeps/i386/fpu/bits/mathinline.h (ldexpf, ldexpl): Protect with
	#ifdef __FAST_MATH__.

--- libc/sysdeps/i386/fpu/bits/mathinline.h	2 Jun 2003 22:39:19 -0000	1.51
+++ libc/sysdeps/i386/fpu/bits/mathinline.h	4 Jun 2003 20:06:22 -0000
@@ -534,11 +534,10 @@ ldexp (double __x, int __y) __THROW
 
 # ifdef __FAST_MATH__
 __inline_mathcodeNP (expm1, __x, __expm1_code)
-# endif
 
 /* We cannot rely on M_SQRT being defined.  So we do it for ourself
    here.  */
-# define __M_SQRT2	1.41421356237309504880L	/* sqrt(2) */
+#  define __M_SQRT2	1.41421356237309504880L	/* sqrt(2) */
 
 __inline_mathcodeNP (log1p, __x, \
   register long double __value;						      \
@@ -577,12 +576,12 @@ __inline_mathcodeNP(logb, __x, \
      : "=t" (__junk), "=u" (__value) : "0" (__x));			      \
   return __value)
 
+# endif
 #endif
 
 #ifdef __USE_ISOC99
 #ifdef __FAST_MATH__
 __inline_mathop_declNP (log2, "fld1; fxch; fyl2x", "0" (__x) : "st(1)")
-#endif /* __FAST_MATH__ */
 
 __MATH_INLINE float
 ldexpf (float __x, int __y) __THROW
@@ -596,7 +595,6 @@ ldexpl (long double __x, int __y) __THRO
   __ldexp_code;
 }
 
-#ifdef __FAST_MATH__
 __inline_mathcodeNP3 (fma, __x, __y, __z, return (__x * __y) + __z)
 
 __inline_mathopNP (rint, "frndint")

	Jakub

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] bits/mathinline.h
  2003-06-04 20:20 [PATCH] bits/mathinline.h Jakub Jelinek
@ 2003-06-04 21:33 ` Ulrich Drepper
  0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Drepper @ 2003-06-04 21:33 UTC (permalink / raw)
  To: Jakub Jelinek; +Cc: Roland McGrath, Glibc hackers

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jakub Jelinek wrote:

> 2003-06-04  Jakub Jelinek  <jakub@redhat.com>
> 
> 	* sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh,
> 	hypot, logb): Protect with #ifdef __FAST_MATH__.
> 
> 2003-06-04  Thorsten Kukuk  <kukuk@suse.de>
> 
> 	* sysdeps/i386/fpu/bits/mathinline.h (ldexpf, ldexpl): Protect with
> 	#ifdef __FAST_MATH__.

I've applied these now.  Thanks,

- -- 
- --------------.                        ,-.            444 Castro Street
Ulrich Drepper \    ,-----------------'   \ Mountain View, CA 94041 USA
Red Hat         `--' drepper at redhat.com `---------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+3mWL2ijCOnn/RHQRAg7+AKCNhBYraNGcTcakpyccBzRSZMKIGgCgl9QM
LHUIYreAQeT3/aEDoj5l59M=
=SeAc
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-06-04 21:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-04 20:20 [PATCH] bits/mathinline.h Jakub Jelinek
2003-06-04 21:33 ` Ulrich Drepper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).