diff options
| author | eunhhu <[email protected]> | 2026-10-19 01:13:07 +0100 |
|---|---|---|
| committer | eunhhu <[email protected]> | 2026-10-19 01:13:07 +0100 |
| commit | b79f627af433a63f8f42869b124f5ef344a49352 (patch) | |
| tree | 02aebc9cb63ace5040e5467949f3bec91edabf36 /core/module.h | |
| parent | 7e1b3dc160906abaecfd4fe49ab2a51a3e2bfda4 (diff) | |
| download | pure-b79f627af433a63f8f42869b124f5ef344a49352.tar.gz pure-b79f627af433a63f8f42869b124f5ef344a49352.zip | |
027's stage 5 designed and 5a made: two numbers (number, binary64, the default of literals and of counts, positions, lengths and u32 fields, whole to 2^53 exactly; i64 the exact integers past it, bits and money, never mixed, moved by number() and i64() when exact), / a number's division, // the floored quotient, i64 folds exact (only the result in range, so in any order), number folds in order unless the batch executor's 2^53 test says any order is exact, money as i64 minor units shown by .Nd, a replace carrying number, bool and i64 when exact; 5a: opcode FLOORDIV (95, 96 now): a number's floored quotient as Python's float //, exactly (a less its floored remainder, divided, to the nearest whole; a zero signed as a / b; by zero divide), a new opcode so the JIT, the tier and the batch executor leave it to the executor; unit test floor_division (7 // 2, -7 // 2, 7 // -2, 1 // 0.1 = 9, 0 // -3 = -0, 1e300 // 7, by zero); counts: b43 against b42 within 0.001% but BFS without batches -0.09%; the bank's queries (s42 and s43 in turns, six each) -0.20% to 0.00%; 008 and 027
Diffstat (limited to 'core/module.h')
| -rw-r--r-- | core/module.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/module.h b/core/module.h index 8a84ddb..ce8cebf 100644 --- a/core/module.h +++ b/core/module.h @@ -47,6 +47,7 @@ typedef enum { PURE_OP_BYTES_SLICE, PURE_OP_BYTE, PURE_OP_BYTES_LOAD, PURE_OP_BYTES_STORE, PURE_OP_LIST_VALUE, PURE_OP_LIST_BIND, PURE_OP_APPEND_IN, PURE_OP_NUM_PARSE, PURE_OP_CALL, PURE_OP_RETURN, PURE_OP_CHAR_AT, PURE_OP_CHAR, + PURE_OP_FLOORDIV, PURE_OP_COUNT } PureOpcode; /* 027's 4c: an anchor is a place in a text or a list that follows its edits. A text's (a cursor) is a gap between |
