diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-04-07 00:26:55 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-04-07 01:52:27 +0900 |
| commit | 28b496687c0eb36a035a8686794fa45434957e28 (patch) | |
| tree | f660f257eb72a040f693882a502adb1416e42257 /src/BitOps/FloatTraits.php | |
| parent | 7bc9e73c59e6ec7e4f9feef785e08dc56fbb09eb (diff) | |
| download | php-waddiwasi-28b496687c0eb36a035a8686794fa45434957e28.tar.gz php-waddiwasi-28b496687c0eb36a035a8686794fa45434957e28.tar.zst php-waddiwasi-28b496687c0eb36a035a8686794fa45434957e28.zip | |
feat: do not use FFI to cast integers to f32
Diffstat (limited to 'src/BitOps/FloatTraits.php')
| -rw-r--r-- | src/BitOps/FloatTraits.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/BitOps/FloatTraits.php b/src/BitOps/FloatTraits.php index dca9e18..75eebcb 100644 --- a/src/BitOps/FloatTraits.php +++ b/src/BitOps/FloatTraits.php @@ -17,6 +17,8 @@ final readonly class FloatTraits public const int F32_SIGN_SIGNED = 0b10000000_00000000_00000000_00000000; public const int F32_EXPONENT_NAN = 0b01111111_10000000_00000000_00000000; + public const int F32_INFINITY_BITS = 0b01111111_10000000_00000000_00000000; + public const int F64_EXPONENT_BITS = 11; public const int F64_MANTISSA_BITS = 52; |
