70bbffa186
When cross building the configure script hangs or at least takes insane amounts of time for some architectures to create the values for the header files include/cln/{int,float}param.h Since we know our architectures and the sizes of their integer and floating point values, we can just as well create the files from templates using $XBPS_TARGET_WORDSIZE and $XBPS_TARGET_ENDIAN. [ci skip]
17 lines
696 B
C
17 lines
696 B
C
/* Rounding modes, for use below */
|
|
#define rounds_to_nearest 0 /* 0.5 ulp */
|
|
#define rounds_to_zero 1 /* 1 ulp */
|
|
#define rounds_to_infinity 2 /* 1 ulp */
|
|
#define rounds_to_minus_infinity 3 /* 1 ulp */
|
|
|
|
/* Properties of type \`float: */
|
|
/* Largest n for which 1+2^(-n) is exactly represented is 23. */
|
|
/* Largest n for which 1-2^(-n) is exactly represented is 24. */
|
|
#define float_mant_bits 24
|
|
#define float_rounds rounds_to_nearest
|
|
|
|
/* Properties of type \`double': */
|
|
/* Largest n for which 1+2^(-n) is exactly represented is 52. */
|
|
/* Largest n for which 1-2^(-n) is exactly represented is 53. */
|
|
#define double_mant_bits 53
|
|
#define double_rounds rounds_to_nearest
|