LibM: Define FLT_EVAL_METHOD, float_t and double_t

This commit is contained in:
Mițca Dumitru 2021-03-14 20:03:56 +02:00 committed by Andreas Kling
parent 1f1a4f488f
commit 86ee9211be
Notes: sideshowbarker 2024-07-18 21:21:32 +09:00

View file

@ -80,6 +80,22 @@ __BEGIN_DECLS
#define FP_ILOGB0 INT_MIN
#define FP_ILOGNAN INT_MAX
#define FLT_EVAL_METHOD __FLT_EVAL_METHOD__
#if FLT_EVAL_METHOD == 0
typedef float float_t;
typedef double double_t;
#elif FLT_EVAL_METHOD == 1
typedef double float_t;
typedef double double_t;
#elif FLT_EVAL_METHOD == 2
typedef long double float_t;
typedef long double double_t;
#else
typedef float float_t;
typedef double double_t;
#endif
/* Basic floating point operations */
long double fabsl(long double) NOEXCEPT;
double fabs(double) NOEXCEPT;