diff options
| author | Mai <mai.iam2048@gmail.com> | 2023-11-28 19:20:01 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-28 19:20:01 +0100 |
| commit | bfc6bca5832d7c2e4ea39b356de775935d432687 (patch) | |
| tree | 8bbfe0d5f7e8090be9aae1cd414260940a5a7a09 /Source/Core/Common | |
| parent | 5d9838548bd04f5dbd73f597a4c3c29aee1c2625 (diff) | |
| parent | d5ec5c005a028a80f78eb1726739a5d4b6c6e9c0 (diff) | |
Merge pull request #12235 from JosJuice/jitarm64-float-cls
JitArm64: Use LSL+CLS for classifying floats
Diffstat (limited to 'Source/Core/Common')
| -rw-r--r-- | Source/Core/Common/FloatUtils.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/Common/FloatUtils.h b/Source/Core/Common/FloatUtils.h index b1c16d172c..82942c4b19 100644 --- a/Source/Core/Common/FloatUtils.h +++ b/Source/Core/Common/FloatUtils.h @@ -23,11 +23,15 @@ static constexpr u64 DOUBLE_SIGN = 0x8000000000000000ULL; static constexpr u64 DOUBLE_EXP = 0x7FF0000000000000ULL; static constexpr u64 DOUBLE_FRAC = 0x000FFFFFFFFFFFFFULL; static constexpr u64 DOUBLE_ZERO = 0x0000000000000000ULL; +static constexpr int DOUBLE_EXP_WIDTH = 11; +static constexpr int DOUBLE_FRAC_WIDTH = 52; static constexpr u32 FLOAT_SIGN = 0x80000000; static constexpr u32 FLOAT_EXP = 0x7F800000; static constexpr u32 FLOAT_FRAC = 0x007FFFFF; static constexpr u32 FLOAT_ZERO = 0x00000000; +static constexpr int FLOAT_EXP_WIDTH = 8; +static constexpr int FLOAT_FRAC_WIDTH = 23; inline bool IsQNAN(double d) { |
