From: David Tolnay Date: Sat, 22 Aug 2015 17:54:35 +0000 (-0700) Subject: Sort libm functions X-Git-Tag: jq-1.6rc1~192 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=370833d55573a223b60ea51b4cea7b6c0326e030;p=jq Sort libm functions --- diff --git a/configure.ac b/configure.ac index 37aa52b..b8aaa70 100644 --- a/configure.ac +++ b/configure.ac @@ -168,18 +168,22 @@ AC_CHECK_MATH_FUNC(acosh, [.5]) AC_CHECK_MATH_FUNC(asin, [.5]) AC_CHECK_MATH_FUNC(asinh, [.5]) AC_CHECK_MATH_FUNC(atan, [.5]) +AC_CHECK_MATH_FUNC(atan2, [.5,.5]) AC_CHECK_MATH_FUNC(atanh, [.5]) AC_CHECK_MATH_FUNC(cbrt, [.5]) AC_CHECK_MATH_FUNC(cos, [.5]) AC_CHECK_MATH_FUNC(cosh, [.5]) -AC_CHECK_MATH_FUNC(exp2, [.5]) AC_CHECK_MATH_FUNC(exp, [.5]) +AC_CHECK_MATH_FUNC(exp2, [.5]) AC_CHECK_MATH_FUNC(floor, [.5]) +AC_CHECK_MATH_FUNC(hypot, [.5,.5]) AC_CHECK_MATH_FUNC(j0, [.5]) AC_CHECK_MATH_FUNC(j1, [.5]) +AC_CHECK_MATH_FUNC(log, [.5]) AC_CHECK_MATH_FUNC(log10, [.5]) AC_CHECK_MATH_FUNC(log2, [.5]) -AC_CHECK_MATH_FUNC(log, [.5]) +AC_CHECK_MATH_FUNC(pow, [2,2]) +AC_CHECK_MATH_FUNC(remainder, [3,2]) AC_CHECK_MATH_FUNC(sin, [.5]) AC_CHECK_MATH_FUNC(sinh, [.5]) AC_CHECK_MATH_FUNC(sqrt, [.5]) @@ -188,10 +192,6 @@ AC_CHECK_MATH_FUNC(tanh, [.5]) AC_CHECK_MATH_FUNC(tgamma, [.5]) AC_CHECK_MATH_FUNC(y0, [.5]) AC_CHECK_MATH_FUNC(y1, [.5]) -AC_CHECK_MATH_FUNC(pow, [2,2]) -AC_CHECK_MATH_FUNC(atan2, [.5,.5]) -AC_CHECK_MATH_FUNC(hypot, [.5,.5]) -AC_CHECK_MATH_FUNC(remainder, [3,2]) dnl Thread local storage have___thread=no diff --git a/libm.h b/libm.h index 664b194..49add49 100644 --- a/libm.h +++ b/libm.h @@ -23,6 +23,11 @@ LIBM_DD(atan) #else LIBM_DD_NO(atan) #endif +#ifdef HAVE_ATAN2 +LIBM_DDD(atan2) +#else +LIBM_DDD_NO(atan2) +#endif #ifdef HAVE_ATANH LIBM_DD(atanh) #else @@ -43,21 +48,26 @@ LIBM_DD(cosh) #else LIBM_DD_NO(cosh) #endif -#ifdef HAVE_EXP2 -LIBM_DD(exp2) -#else -LIBM_DD_NO(exp2) -#endif #ifdef HAVE_EXP LIBM_DD(exp) #else LIBM_DD_NO(exp) #endif +#ifdef HAVE_EXP2 +LIBM_DD(exp2) +#else +LIBM_DD_NO(exp2) +#endif #ifdef HAVE_FLOOR LIBM_DD(floor) #else LIBM_DD_NO(floor) #endif +#ifdef HAVE_HYPOT +LIBM_DDD(hypot) +#else +LIBM_DDD_NO(hypot) +#endif #ifdef HAVE_J0 LIBM_DD(j0) #else @@ -68,6 +78,11 @@ LIBM_DD(j1) #else LIBM_DD_NO(j1) #endif +#ifdef HAVE_LOG +LIBM_DD(log) +#else +LIBM_DD_NO(log) +#endif #ifdef HAVE_LOG10 LIBM_DD(log10) #else @@ -78,10 +93,15 @@ LIBM_DD(log2) #else LIBM_DD_NO(log2) #endif -#ifdef HAVE_LOG -LIBM_DD(log) +#ifdef HAVE_POW +LIBM_DDD(pow) #else -LIBM_DD_NO(log) +LIBM_DDD_NO(pow) +#endif +#ifdef HAVE_REMAINDER +LIBM_DDD(remainder) +#else +LIBM_DDD_NO(remainder) #endif #ifdef HAVE_SIN LIBM_DD(sin) @@ -123,29 +143,9 @@ LIBM_DD(y1) #else LIBM_DD_NO(y1) #endif -#ifdef HAVE_POW -LIBM_DDD(pow) -#else -LIBM_DDD_NO(pow) -#endif #ifdef HAVE_JN LIBM_DID(jn) #endif #ifdef HAVE_YN LIBM_DID(yn) #endif -#ifdef HAVE_ATAN2 -LIBM_DDD(atan2) -#else -LIBM_DDD_NO(atan2) -#endif -#ifdef HAVE_HYPOT -LIBM_DDD(hypot) -#else -LIBM_DDD_NO(hypot) -#endif -#ifdef HAVE_REMAINDER -LIBM_DDD(remainder) -#else -LIBM_DDD_NO(remainder) -#endif