mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-27 11:48:59 +00:00
Everywhere: Remove all KERNEL #define
s
This commit is contained in:
parent
de99dd2c89
commit
5ca2f4dfd7
Notes:
sideshowbarker
2024-07-16 23:17:55 +09:00
Author: https://github.com/tcl3
Commit: 5ca2f4dfd7
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/195
73 changed files with 116 additions and 808 deletions
10
AK/Types.h
10
AK/Types.h
|
@ -17,20 +17,18 @@ using i32 = __INT32_TYPE__;
|
|||
using i16 = __INT16_TYPE__;
|
||||
using i8 = __INT8_TYPE__;
|
||||
|
||||
#ifndef KERNEL
|
||||
using f32 = float;
|
||||
static_assert(__FLT_MANT_DIG__ == 24 && __FLT_MAX_EXP__ == 128);
|
||||
|
||||
using f64 = double;
|
||||
static_assert(__DBL_MANT_DIG__ == 53 && __DBL_MAX_EXP__ == 1024);
|
||||
|
||||
# if __LDBL_MANT_DIG__ == 64 && __LDBL_MAX_EXP__ == 16384
|
||||
# define AK_HAS_FLOAT_80 1
|
||||
#if __LDBL_MANT_DIG__ == 64 && __LDBL_MAX_EXP__ == 16384
|
||||
# define AK_HAS_FLOAT_80 1
|
||||
using f80 = long double;
|
||||
# elif __LDBL_MANT_DIG__ == 113 && __LDBL_MAX_EXP__ == 16384
|
||||
# define AK_HAS_FLOAT_128 1
|
||||
#elif __LDBL_MANT_DIG__ == 113 && __LDBL_MAX_EXP__ == 16384
|
||||
# define AK_HAS_FLOAT_128 1
|
||||
using f128 = long double;
|
||||
# endif
|
||||
#endif
|
||||
|
||||
namespace AK::Detail {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue