Commit Graph

135 Commits

Author SHA1 Message Date
Jacek Sieka 711cda4456
add native nim mode (#142)
* add native nim mode

* don't try to link wasm-c code
2023-09-25 16:49:04 +02:00
jangko 54e24cae41
Disable test that crash with debug cpp nimRawSetJmp on nim v2 2023-09-12 21:08:10 +07:00
jangko d198ec031e
test against intx library 2023-07-07 19:36:50 +07:00
jangko ea02d7db68
more custom literal tests and overflow check 2023-07-07 17:57:14 +07:00
jangko e374311f70
add custom literal feature 2023-07-07 13:22:22 +07:00
jangko 3e9d64c896
fix skipPrefixes bug 2023-07-07 12:56:30 +07:00
jangko 7fc30a8f1c
enable randomized divmod tests 2023-06-23 09:31:27 +07:00
jangko c5955f7e97
fix broken io test on 32 bit 2023-06-22 22:54:22 +07:00
jangko 025428d0ae
tidying up tests 2023-06-22 22:31:12 +07:00
jangko 8c1e43f001
fix shlAddMod SIGFPE bug 2023-06-22 16:43:31 +07:00
jangko e99bc7ff89
add signed int modular arithmetic and tests 2023-06-20 21:38:02 +07:00
jangko 867739d2ca
more endians2 implementation and tests 2023-06-20 19:45:49 +07:00
jangko 80ccea2643
fix conversion raises, inlining, and min/max test 2023-06-20 18:27:17 +07:00
jangko 6480939dcd
conversion between big integers 2023-06-20 14:59:26 +07:00
jangko 4a3f300bd6
fix stuint truncate on 32bit platform 2023-06-19 18:27:49 +07:00
jangko 140afc31ab
fix stuint truncate 2023-06-19 17:20:54 +07:00
jangko 13a9d31f9a
rename imp to impl 2023-06-15 14:31:59 +07:00
jangko 41bfed6bb7
io test 2023-06-14 22:26:44 +07:00
jangko 21eeee72df
nimvm bug workaround 2023-06-14 17:41:02 +07:00
jangko 1ce276db1e
bug 92 workaround 2023-06-14 13:22:52 +07:00
jangko c748d9afb7
fix style type 2023-06-14 09:52:56 +07:00
jangko 79ad349fb5
cleanup tests 2023-06-14 09:41:01 +07:00
jangko 7b7db2a73a
signed int exp 2023-06-14 08:31:28 +07:00
jangko 1657d841e7
cleanup some code 2023-06-14 08:06:44 +07:00
jangko 8ea95078f4
signed int addsub 2023-06-14 07:38:23 +07:00
jangko f2959e5135
signed int bitwise 2023-06-13 22:17:43 +07:00
jangko 612ecb3d9b
signed int comparison 2023-06-13 21:53:19 +07:00
jangko f07f574944
fix comparison 2023-06-13 20:39:22 +07:00
jangko fb797d225e
signed int initialization 2023-06-13 19:51:49 +07:00
jangko 76b2baad6f
signed int signedness 2023-06-13 19:09:43 +07:00
jangko 0dc6afe9d4
let the tests compileable and run 2023-06-12 21:07:15 +07:00
Mamy Ratsimbazafy bff69b3f98
Add randomized testing vs GMP 2023-06-12 17:13:35 +07:00
Mamy Ratsimbazafy 27e9c9e441
Add randomized testing, harden against edge cases 2023-06-12 17:12:43 +07:00
Mamy Ratsimbazafy 53d2fd14f3
uint division - compile and pass the single limb tests 2023-06-12 17:11:13 +07:00
Mamy André-Ratsimbazafy dc9e0a43ca
Implement exponentiation, test mul, split mul/div tests 2023-06-12 17:08:21 +07:00
Mamy André-Ratsimbazafy 59bca47012
Fix comparison operators 2023-06-12 17:08:21 +07:00
Mamy André-Ratsimbazafy 195480d58a
passing compile-time bitwise tests (but not runtime :?) 2023-06-12 17:08:20 +07:00
tersec 95b91474ce
remove Nim 1.2 and 1.4 support 2023-06-08 11:08:27 +00:00
tersec 86621eced1
remove pre-Nim 1.2 support (#127) 2023-06-05 11:42:36 +00:00
G f36623998f
fix(skipPrefixes): fix erroneous strip of 0b in hex numbers (#120)
* fix(skipPrefixes): fix erroneous strip of 0b in hex numbers

* refactor(skipPrefixes): normalize radix checks

* feat(stint): add tests for bin, oct, hex string conversions

* fix(stint): fix cast

* fix(stint): fix typo

* fix(stint): alternative format

* feat(stint): add test

* fix(stint): fix stint width in test
2022-10-03 12:15:45 +02:00
Kim De Mey e656ad40d1
Enable --styleCheck:usages (#118) 2022-02-24 20:09:53 +01:00
Mamy Ratsimbazafy ddfa6c608a
Fix 32-bit failure on Nim 1.6 (#116)
* Nim 1.6 compiletime can now be affected by https://github.com/status-im/nim-stint/issues/92 ?

* seems like it happens on runtime too
2022-01-13 12:04:26 +01:00
Ștefan Talpalaru e17113fb31
CI: test with multiple Nim versions (#114)
* CI: test with multiple Nim versions
2022-01-12 03:20:04 +01:00
Mamy Ratsimbazafy 49d11d61b8
RangeError are actually defect and not catchable. (#111)
* RangeError are actually defect and not catchable.

* Don't use range types at runtime they throw RangeDefect
2021-10-08 10:08:56 +02:00
Mamy Ratsimbazafy 06e5c4829c
Parsing should raise CatchableError for user inputs (#110) 2021-10-06 18:53:52 +02:00
zah 9e49b00148 Define a hash function in order to support Stint keys in hash tables (#102)
* Hash stint values as byte blobs; Add a basic test for using stint keys in a table
2019-12-18 14:02:16 +01:00
andri lim d98b77c88d fixes #94, implement conversion constructor 2019-12-13 16:19:41 +02:00
andri lim 9ec615f0ef disable powmod at compile time 2019-10-25 19:54:41 +03:00
andri lim ea82fdfb39 add more test for 'mod' operation 2019-10-25 19:54:41 +03:00
andri lim 2b5d083dac fixes 32bit problem 2019-10-25 19:54:41 +03:00