Branch
Hash :
d420f033
Author :
Date :
2025-04-14T11:37:25
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 gl_DOUBLE_EXPONENT_LOCATION, and guess the result depending on the CPU. * modules/getpayloadl (Depends-on): Add exponentd.m4, math_h.m4. * modules/isfinite (Depends-on): Likewise. * modules/isnanl (Depends-on): Likewise. * modules/setpayloadl (Depends-on): Likewise. * modules/setpayloadsigl (Depends-on): Likewise. * modules/isnanl-nolibm (Depends-on): Add exponentd.m4.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
Description:
getpayloadl function: extract the payload of a NaN
Files:
lib/getpayloadl.c
m4/mathfunc.m4
m4/getpayload.m4
m4/exponentl.m4
m4/exponentd.m4
m4/math_h.m4
Depends-on:
math-h
extensions
getpayload [{ test $HAVE_GETPAYLOADL = 0 || test $REPLACE_GETPAYLOADL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1]
float-h [{ test $HAVE_GETPAYLOADL = 0 || test $REPLACE_GETPAYLOADL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0]
stdint-h [{ test $HAVE_GETPAYLOADL = 0 || test $REPLACE_GETPAYLOADL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0]
isnanl [{ test $HAVE_GETPAYLOADL = 0 || test $REPLACE_GETPAYLOADL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0]
snan [{ test $HAVE_GETPAYLOADL = 0 || test $REPLACE_GETPAYLOADL = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0]
configure.ac:
gl_FUNC_GETPAYLOADL
gl_CONDITIONAL([GL_COND_OBJ_GETPAYLOADL],
[test $HAVE_GETPAYLOADL = 0 || test $REPLACE_GETPAYLOADL = 1])
gl_MATH_MODULE_INDICATOR([getpayloadl])
Makefile.am:
if GL_COND_OBJ_GETPAYLOADL
lib_SOURCES += getpayloadl.c
endif
Include:
<math.h>
Link:
$(GETPAYLOADL_LIBM)
License:
LGPL
Maintainer:
all