This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH 3/4] Macroize inclusion of math-finite.h (part 3)
- From: "Gabriel F. T. Gomes" <gftg at linux dot vnet dot ibm dot com>
- To: libc-alpha at sourceware dot org
- Date: Mon, 13 Mar 2017 18:01:58 -0300
- Subject: [PATCH 3/4] Macroize inclusion of math-finite.h (part 3)
- Authentication-results: sourceware.org; auth=none
- References: <1489438919-4009-1-git-send-email-gftg@linux.vnet.ibm.com>
---
math/bits/math-finite.h | 17 ++++-------------
1 file changed, 4 insertions(+), 13 deletions(-)
diff --git a/math/bits/math-finite.h b/math/bits/math-finite.h
index ea199ed..1b5a243 100644
--- a/math/bits/math-finite.h
+++ b/math/bits/math-finite.h
@@ -156,22 +156,13 @@ __NTH (__REDIRFROM (lgamma, , _MSUF_) (_Mdouble_ __d))
#if ((defined __USE_MISC || (defined __USE_XOPEN && !defined __USE_XOPEN2K)) \
&& defined __extern_always_inline)
+# if __MATH_DECLARE_LDOUBLE || defined __USE_ISOC99
/* gamma. */
-__extern_always_inline double __NTH (gamma (double __d))
-{
- return __lgamma_r_finite (__d, &signgam);
-}
-# ifdef __USE_ISOC99
-__extern_always_inline float __NTH (gammaf (float __d))
-{
- return __lgammaf_r_finite (__d, &signgam);
-}
-# ifdef __MATH_DECLARE_LDOUBLE
-__extern_always_inline long double __NTH (gammal (long double __d))
+__extern_always_inline _Mdouble_
+__NTH (__REDIRFROM (gamma, , _MSUF_) (_Mdouble_ __d))
{
- return __lgammal_r_finite (__d, &signgam);
+ return __REDIRTO (lgamma, _r, _MSUF_) (__d, &signgam);
}
-# endif
# endif
#endif
--
2.4.11