]> granicus.if.org Git - jq/commitdiff
Sort libm functions
authorDavid Tolnay <dtolnay@gmail.com>
Sat, 22 Aug 2015 17:54:35 +0000 (10:54 -0700)
committerDavid Tolnay <dtolnay@gmail.com>
Sat, 22 Aug 2015 17:54:35 +0000 (10:54 -0700)
configure.ac
libm.h

index 37aa52b2616ca7ee3415c83cf90ab9fd629c37c0..b8aaa706883a6060b7032c10d432f4c3d0ca5f09 100644 (file)
@@ -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 664b19442deb8acdaf2dc8b30403251db18ea5ee..49add490b6fbdc4f026b8a89e1598fe14470a1c1 100644 (file)
--- 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