mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
Remove FLOAT_ADD and similar
This commit is contained in:
parent
ddf980e475
commit
32b9b1ea60
6 changed files with 60 additions and 93 deletions
|
@ -606,31 +606,29 @@ define_builtins! {
|
|||
4 INT_MOD: "mod"
|
||||
5 INT_HIGHEST: "highest"
|
||||
6 INT_LOWEST: "lowest"
|
||||
7 INT_ADD: "#add"
|
||||
8 INT_SUB: "#sub"
|
||||
9 INT_DIV_UNSAFE: "divUnsafe" // TODO remove once we can code gen Result
|
||||
10 INT_LT: "#lt"
|
||||
11 INT_LTE: "#lte"
|
||||
12 INT_GT: "#gt"
|
||||
13 INT_GTE: "#gte"
|
||||
14 INT_DIV_ARG_NUMERATOR: "div#numerator" // The first argument to `//`, the numerator
|
||||
15 INT_DIV_ARG_DENOMINATOR: "div#denominator" // The first argument to `//`, the denominator
|
||||
16 INT_ABS: "abs"
|
||||
17 INT_ABS_ARG: "abs#arg"
|
||||
18 INT_REM_UNSAFE: "remUnsafe"
|
||||
19 INT_REM: "rem"
|
||||
20 INT_REM_ARG_0: "rem#arg0"
|
||||
21 INT_REM_ARG_1: "rem#arg1"
|
||||
22 INT_IS_ODD: "isOdd"
|
||||
23 INT_IS_ODD_ARG: "isOdd#arg"
|
||||
24 INT_IS_EVEN: "isEven"
|
||||
25 INT_IS_EVEN_ARG: "isEven#arg"
|
||||
26 INT_IS_ZERO: "isZero"
|
||||
27 INT_IS_ZERO_ARG: "isZero#arg"
|
||||
28 INT_IS_POSITIVE: "isPositive"
|
||||
29 INT_IS_POSITIVE_ARG: "isPositive#arg"
|
||||
30 INT_IS_NEGATIVE: "isNegative"
|
||||
31 INT_IS_NEGATIVE_ARG: "isNegative#arg"
|
||||
7 INT_DIV_UNSAFE: "divUnsafe" // TODO remove once we can code gen Result
|
||||
8 INT_LT: "#lt"
|
||||
9 INT_LTE: "#lte"
|
||||
10 INT_GT: "#gt"
|
||||
11 INT_GTE: "#gte"
|
||||
12 INT_DIV_ARG_NUMERATOR: "div#numerator" // The first argument to `//`, the numerator
|
||||
13 INT_DIV_ARG_DENOMINATOR: "div#denominator" // The first argument to `//`, the denominator
|
||||
14 INT_ABS: "abs"
|
||||
15 INT_ABS_ARG: "abs#arg"
|
||||
16 INT_REM_UNSAFE: "remUnsafe"
|
||||
17 INT_REM: "rem"
|
||||
18 INT_REM_ARG_0: "rem#arg0"
|
||||
19 INT_REM_ARG_1: "rem#arg1"
|
||||
20 INT_IS_ODD: "isOdd"
|
||||
21 INT_IS_ODD_ARG: "isOdd#arg"
|
||||
22 INT_IS_EVEN: "isEven"
|
||||
23 INT_IS_EVEN_ARG: "isEven#arg"
|
||||
24 INT_IS_ZERO: "isZero"
|
||||
25 INT_IS_ZERO_ARG: "isZero#arg"
|
||||
26 INT_IS_POSITIVE: "isPositive"
|
||||
27 INT_IS_POSITIVE_ARG: "isPositive#arg"
|
||||
28 INT_IS_NEGATIVE: "isNegative"
|
||||
29 INT_IS_NEGATIVE_ARG: "isNegative#arg"
|
||||
}
|
||||
3 FLOAT: "Float" => {
|
||||
0 FLOAT_FLOAT: "Float" imported // the Float.Float type alias
|
||||
|
@ -641,25 +639,18 @@ define_builtins! {
|
|||
5 FLOAT_SQRT: "sqrt"
|
||||
6 FLOAT_HIGHEST: "highest"
|
||||
7 FLOAT_LOWEST: "lowest"
|
||||
8 FLOAT_ADD: "#add"
|
||||
9 FLOAT_SUB: "#sub"
|
||||
10 FLOAT_EQ: "eq"
|
||||
11 FLOAT_ROUND: "round"
|
||||
12 FLOAT_LT: "#lt"
|
||||
13 FLOAT_LTE: "#lte"
|
||||
14 FLOAT_GT: "gt"
|
||||
15 FLOAT_GTE: "#gte"
|
||||
16 FLOAT_ABS: "abs"
|
||||
17 FLOAT_IS_POSITIVE: "isPositive"
|
||||
18 FLOAT_IS_POSITIVE_ARG: "isPositive#arg"
|
||||
19 FLOAT_IS_NEGATIVE: "isNegative"
|
||||
20 FLOAT_IS_NEGATIVE_ARG: "isNegative#arg"
|
||||
21 FLOAT_IS_ZERO: "isZero"
|
||||
22 FLOAT_IS_ZERO_ARG: "isZero#arg"
|
||||
23 FLOAT_SIN: "sin"
|
||||
24 FLOAT_COS: "cos"
|
||||
25 FLOAT_TAN: "tan"
|
||||
26 FLOAT_TAN_ARG: "tan#arg"
|
||||
8 FLOAT_ROUND: "round"
|
||||
9 FLOAT_ABS: "abs"
|
||||
10 FLOAT_IS_POSITIVE: "isPositive"
|
||||
11 FLOAT_IS_POSITIVE_ARG: "isPositive#arg"
|
||||
12 FLOAT_IS_NEGATIVE: "isNegative"
|
||||
13 FLOAT_IS_NEGATIVE_ARG: "isNegative#arg"
|
||||
14 FLOAT_IS_ZERO: "isZero"
|
||||
15 FLOAT_IS_ZERO_ARG: "isZero#arg"
|
||||
16 FLOAT_SIN: "sin"
|
||||
17 FLOAT_COS: "cos"
|
||||
18 FLOAT_TAN: "tan"
|
||||
19 FLOAT_TAN_ARG: "tan#arg"
|
||||
}
|
||||
4 BOOL: "Bool" => {
|
||||
0 BOOL_BOOL: "Bool" imported // the Bool.Bool type alias
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue