Jacek Sieka
1a2c661e3f
v0.8.1
...
* compatibility fixes with various upstream changes
v0.8.1
2025-01-08 14:33:17 +01:00
ringabout
540d04c754
adds nodecl
to imported types ( #166 )
2025-01-08 13:17:31 +00:00
tersec
39c84ff52f
enable some disabled tests ( #165 )
...
* enable some disabled tests
* re-enable more tests and fix subtraction spelling
2024-12-27 13:30:35 +00:00
ringabout
dc5a7ec582
fixes asm statement in nimHasAsmSemSymbol
in the devel branch ( #164 )
...
In https://github.com/nim-lang/Nim/pull/24547 , asm statements require no explicit dereference
2024-12-19 19:22:40 +01:00
Jacek Sieka
c5a4355407
Initial release (v0.8.0) ( #161 )
...
First versioned release to celebrate the increased capabilities of
`nimble` to work with versions ;)
This release is "nearly" feature-complete but still has some open
API/ABI questions, in particular around endians, bitops and other
convenience features.
Ideally, a 1.0 release would also not carry a stew dependency but rather
see that part of stew exported to its own
[intops](https://github.com/status-im/nim-stew/pull/187 ) library that
would gather all the low-level stuff and define a common minimally
supported API for all kinds of integers, native or not.
v0.8.0
2024-12-04 12:04:10 +01:00
Jacek Sieka
ae665d6546
endians2: signed int fix ( #163 )
2024-12-04 08:33:24 +01:00
Jacek Sieka
12f85ad01a
endians: fix ambiguous endians2/io names ( #162 )
...
* endians: fix ambiguous endians2/io names
* oops
2024-12-03 20:55:39 +01:00
Jacek Sieka
b06bb210d9
Refresh endians2 ( #160 )
...
* speed up conversions by unrolling bulk limb conversion
* remove default from `toBytes`/`fromBytes` - the existing default did
not match `stew/endians2` which is an unnecessary risk - rather than
changing it to match, the safer option is to remove it for now so that
code in the wild gets a compile error
* deprecate redundant names like `toByteArrayXX` (`toBytesXX` etc do the
same thing)
* deprecate staticFor (now lives in stew)
2024-12-03 13:16:02 +01:00
Jacek Sieka
5c5e01cef0
fix compile-time hash, port to unittest2 ( #145 )
...
* enable compile-time testing for most of the test suite (some parts
that were skipping things turned out to be bugs)
* port to unittest2 and use its recent compile-time testing support
2024-11-25 14:17:39 +01:00
Etan Kissling
3236fa6839
Replace apt-fast
with apt-get
( #159 )
...
`apt-fast` was removed from GitHub with Ubuntu 24.04:
- https://github.com/actions/runner-images/issues/10003
For compatibility, switch back to `apt-get`.
2024-10-15 15:48:30 +00:00
Jacek Sieka
7c81df9adc
fix modmul 256-bit perf ( #156 )
...
Not sure about other lengths, but this 100x's 256-bit `modmul` on the
given trivial benchmark and fixes abysmally slow EVM performance
```
Modmul (stint): 856300 ms
```
```
Modmul (stint): 8850 ms
```
2024-07-09 15:35:08 +02:00
Jacek Sieka
9a3348bd44
hash limbs instead of bytes ( #155 )
...
avoids silly byte hasher
2024-06-17 15:40:09 +02:00
Eugene Kabanov
9d2b382c5d
Fix GCC-14 [-Wincompatible-pointer-types] issue. ( #153 )
2024-05-23 06:31:45 +02:00
andri lim
379901ad36
Fix pointer deref issue on Macos and Nim >= 2.0 ( #152 )
2024-05-20 23:39:33 +07:00
tersec
3c238df6cd
fix noInit to noinit; use evergreen GitHub Actions image versions ( #151 )
2024-03-13 04:45:06 +00:00
andri lim
7bb0ccc784
Upgrade github actions to v4 ( #149 )
2024-02-27 19:55:11 +07:00
Eugene Kabanov
e639ba700c
Make decimal string parser raise ValueError instead of RangeDefect. ( #148 )
...
* Fix decimal parser helper to raise ValueError instead of RangeDefect.
* Get some fixes in place.
2024-02-27 02:36:02 +02:00
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
342c7a786b
Switch to llvm-mingw on Windows CI for faster runtime
2023-09-12 20:05:40 +07:00
jangko
bfa299f3ae
Fix compilation failure for arch other than amd64/i386
2023-09-12 19:51:30 +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
19e0ac6268
export toBytesBE, toBytesLE
2023-06-21 15:25:29 +07:00
jangko
3ef8d0027a
add fromDecimal to io
2023-06-20 21:39:37 +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
747978e1e5
fix misleading comments
2023-06-15 14:08:27 +07:00
jangko
6a79fcb25b
remove unused files
2023-06-15 14:07:40 +07:00
jangko
c6422a9439
fix signed integer truncate for 32 bit platform
2023-06-15 13:10:58 +07:00
jangko
41bfed6bb7
io test
2023-06-14 22:26:44 +07:00
jangko
6371b66030
nim devel emit codegen workaround
2023-06-14 18:13:07 +07:00
jangko
21eeee72df
nimvm bug workaround
2023-06-14 17:41:02 +07:00
jangko
ddcb2111e4
fix bugs found by nim-devel
2023-06-14 13:53:42 +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