2025-04-14 Bruno Haible <bruno@clisp.org>
+ isnanl, isfinite, snan: Improve cross-compilation guess.
+ * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Don't assume that
+ arm is always little-endian.
+
isnanl, isfinite, snan: Improve cross-compilation guess.
* m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): When
cross-compiling, invoke gl_LONG_DOUBLE_VS_DOUBLE and
# big-endian, 80-bits padded to 96 bits, non-IEEE exponent
gl_cv_cc_long_double_expbit0='word 0 bit 16'
;;
- alpha* | arm* | aarch64 | loongarch64 | riscv32 | riscv64 | sh4)
+ alpha* | aarch64 | loongarch64 | riscv32 | riscv64 | sh4)
# little-endian IEEE 754 quadruple-precision
gl_cv_cc_long_double_expbit0='word 3 bit 16'
;;
# big-endian IEEE 754 quadruple-precision
gl_cv_cc_long_double_expbit0='word 0 bit 16'
;;
+ arm*)
+ AC_COMPILE_IFELSE(
+ [AC_LANG_PROGRAM([[
+ #if defined _ARMEL
+ int little;
+ #else
+ #error big
+ #endif
+ ]], [[]])
+ ],
+ [# little-endian IEEE 754 quadruple-precision
+ gl_cv_cc_long_double_expbit0='word 3 bit 16'
+ ],
+ [# big-endian IEEE 754 quadruple-precision
+ gl_cv_cc_long_double_expbit0='word 0 bit 16'
+ ])
+ ;;
mips*)
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM([[