f32/f64toParts in repl only

This commit is contained in:
Fabian Schmalzried 2024-03-16 14:41:20 +01:00
parent 64e9899cad
commit 473b8ef2d3
No known key found for this signature in database
GPG key ID: D691D5DA4CEF42E7
12 changed files with 72 additions and 6 deletions

View file

@ -104,6 +104,8 @@ pub enum LowLevel {
NumCountOneBits,
NumWithoutDecimalPoint,
NumWithDecimalPoint,
NumF32ToParts,
NumF64ToParts,
I128OfDec,
Eq,
NotEq,
@ -341,6 +343,8 @@ map_symbol_to_lowlevel! {
I128OfDec <= I128_OF_DEC;
NumWithoutDecimalPoint <= NUM_WITHOUT_DECIMAL_POINT;
NumWithDecimalPoint <= NUM_WITH_DECIMAL_POINT;
NumF32ToParts <= NUM_F32_TO_PARTS;
NumF64ToParts <= NUM_F64_TO_PARTS;
Eq <= BOOL_STRUCTURAL_EQ;
NotEq <= BOOL_STRUCTURAL_NOT_EQ;
And <= BOOL_AND;

View file

@ -1270,6 +1270,8 @@ define_builtins! {
158 NUM_REM_UNCHECKED: "remUnchecked" // traps on division by zero
159 NUM_WITHOUT_DECIMAL_POINT: "withoutDecimalPoint"
160 NUM_WITH_DECIMAL_POINT: "withDecimalPoint"
161 NUM_F32_TO_PARTS: "f32ToParts"
162 NUM_F64_TO_PARTS: "f64ToParts"
}
4 BOOL: "Bool" => {
0 BOOL_BOOL: "Bool" exposed_type=true // the Bool.Bool type alias