diff options
Diffstat (limited to 'math')
-rw-r--r-- | math/Makefile | 2 | ||||
-rw-r--r-- | math/math.h | 15 |
2 files changed, 11 insertions, 6 deletions
diff --git a/math/Makefile b/math/Makefile index bcf627d..a7c2b07 100644 --- a/math/Makefile +++ b/math/Makefile @@ -28,7 +28,7 @@ headers := math.h bits/mathcalls.h bits/mathinline.h bits/huge_val.h \ bits/fenv.h bits/fenvinline.h bits/mathdef.h tgmath.h \ bits/math-finite.h bits/math-vector.h \ bits/libm-simd-decl-stubs.h bits/iscanonical.h \ - bits/flt-eval-method.h + bits/flt-eval-method.h bits/fp-fast.h # FPU support code. aux := setfpucw fpu_control diff --git a/math/math.h b/math/math.h index 70bf8e5..95b39b3 100644 --- a/math/math.h +++ b/math/math.h @@ -97,6 +97,15 @@ typedef _Float128x double_t; # endif #endif +/* Define macros for the return value of ilogb. + + FP_ILOGB0 Expands to a value returned by `ilogb (0.0)'. + FP_ILOGBNAN Expands to a value returned by `ilogb (NAN)'. + +*/ + +#include <bits/mathdef.h> + /* Get the architecture specific values describing the floating-point evaluation. The following symbols will get defined: @@ -107,13 +116,9 @@ typedef _Float128x double_t; generally executes about as fast as a multiply and an add. This macro is defined only iff the `fma' function is implemented directly with a hardware multiply-add instructions. - - FP_ILOGB0 Expands to a value returned by `ilogb (0.0)'. - FP_ILOGBNAN Expands to a value returned by `ilogb (NAN)'. - */ -#include <bits/mathdef.h> +#include <bits/fp-fast.h> /* The file <bits/mathcalls.h> contains the prototypes for all the actual math functions. These macros are used for those prototypes, |