From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20986 invoked by alias); 4 Jun 2003 20:20:58 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 20953 invoked from network); 4 Jun 2003 20:20:57 -0000 Received: from unknown (HELO localhost.localdomain) (195.113.19.66) by sources.redhat.com with SMTP; 4 Jun 2003 20:20:57 -0000 Received: from sunsite.ms.mff.cuni.cz (sunsite.mff.cuni.cz [127.0.0.1]) by localhost.localdomain (8.12.8/8.12.8) with ESMTP id h54KKsqO030657; Wed, 4 Jun 2003 22:20:54 +0200 Received: (from jakub@localhost) by sunsite.ms.mff.cuni.cz (8.12.8/8.12.8/Submit) id h54KKs8l030650; Wed, 4 Jun 2003 22:20:54 +0200 Date: Wed, 04 Jun 2003 20:20:00 -0000 From: Jakub Jelinek To: Ulrich Drepper , Roland McGrath Cc: Glibc hackers Subject: [PATCH] bits/mathinline.h Message-ID: <20030604202053.GB24872@sunsite.ms.mff.cuni.cz> Reply-To: Jakub Jelinek Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-SW-Source: 2003-06/txt/msg00006.txt.bz2 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 * sysdeps/i386/fpu/bits/mathinline.h (log1p, asinh, acosh, atanh, hypot, logb): Protect with #ifdef __FAST_MATH__. 2003-06-04 Thorsten Kukuk * 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