Commit Graph

10 Commits

Author SHA1 Message Date
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
jangko e99bc7ff89
add signed int modular arithmetic and tests 2023-06-20 21:38:02 +07:00
jangko 21eeee72df
nimvm bug workaround 2023-06-14 17:41:02 +07:00
jangko 63a32129c8
rebase and try to make it works with clients 2023-06-12 20:26:36 +07:00
Kim De Mey e656ad40d1
Enable --styleCheck:usages (#118) 2022-02-24 20:09:53 +01:00
andri lim 25c2604b4b cosmetics changes 2019-10-25 19:54:41 +03:00
andri lim 9ec615f0ef disable powmod at compile time 2019-10-25 19:54:41 +03:00
Jacek Sieka c5247e9d88
stew updates (#82)
* simplify int api (fixes #68)
* implement endians api
* implement some more bitops
2019-07-22 09:53:58 +02:00
Ștefan Talpalaru 6853ebe97c
assert() -> doAssert() 2019-03-14 03:43:51 +01:00
Mamy Ratsimbazafy f2d0eab153
Modular arithmetic (#47)
* Add isEven and isOdd functions

* Add modular add, mul, sub pow fixes #18
2018-05-16 10:41:46 +02:00