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

Submitted by Gabriel Ferreira Teles Gomes on March 13, 2017, 9:01 p.m.

Details

Message ID 1489438919-4009-4-git-send-email-gftg@linux.vnet.ibm.com
State New
Headers show

Commit Message

Gabriel Ferreira Teles Gomes March 13, 2017, 9:01 p.m.
---
 math/bits/math-finite.h | 17 ++++-------------
 1 file changed, 4 insertions(+), 13 deletions(-)

Patch hide | download patch | download mbox

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