1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-26 13:17:40 +00:00

Renamed bigint -> inttypes / int

A lot of refactoring larger integer types. Fix a number
of casting errors, but mostly rename things. Also try to
limit use of template-like macros as they bloat the binary
if not used in moderation. We were able to reduce the size of
typed array code as well by using a single view types.
This commit is contained in:
Calvin Rose
2019-03-18 21:12:38 -04:00
parent a07d76b264
commit bad040665f
10 changed files with 645 additions and 726 deletions

View File

@@ -23,8 +23,8 @@
# some tests for bigint
(def i64 bigint/int64)
(def u64 bigint/uint64)
(def i64 int/s64)
(def u64 int/u64)
(assert-no-error
"create some uint64 bigints"
@@ -67,7 +67,7 @@
(assert-error
"trap INT64_MIN / -1"
(:/ (bigint/int64 "-0x8000_0000_0000_0000") -1))
(:/ (int/s64 "-0x8000_0000_0000_0000") -1))
# in place operators
(assert (let [a (u64 1e10)] (:+! a 1000000 "1000000" "0xffff") (:== a 10002065535)) "in place operators")