This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 3/4] Macroize inclusion of math-finite.h (part 3)


---
 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]