mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 17:40:27 +00:00
LibM: Define FLT_EVAL_METHOD, float_t and double_t
This commit is contained in:
parent
1f1a4f488f
commit
86ee9211be
Notes:
sideshowbarker
2024-07-18 21:21:32 +09:00
Author: https://github.com/RealKC Commit: https://github.com/SerenityOS/serenity/commit/86ee9211bec Pull-request: https://github.com/SerenityOS/serenity/pull/5792
1 changed files with 16 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue