mratsim
49b3ee1006
Make the tests green again
2018-03-26 16:47:04 +02:00
mratsim
34b25fd697
faster isZero
2018-03-26 16:09:31 +02:00
mratsim
a809768854
Fix https://github.com/status-im/mpint/issues/7 17% speedup on modular division
2018-03-26 16:05:19 +02:00
mratsim
f1935fd673
Improve speed by 90% by inline shr/shl
2018-03-26 14:46:38 +02:00
mratsim
c65ab16512
Conversion fixes for <uint64. Also closes #4 and #5
2018-03-26 12:45:10 +02:00
Mamy Ratsimbazafy
3a1e5b1151
Make bits part of type ( #6 )
...
* Small reorg of conversion proc
* Rework with bits as type. Pass endianess test
* tests_comparison compiles and succeed
* Fix init with int for mpint_test compilation flag
* All tests green 🔥
2018-03-26 11:46:24 +02:00
mratsim
8b8f2a55c4
Relicense under dual Apache/MIT
2018-03-02 11:48:08 +01:00
mratsim
f06c02cf2a
5% more speed to divmod
2018-02-17 17:57:26 +01:00
mratsim
ac902b2a23
20% divmod improvement by using GCC Clang builtins when possible
2018-02-17 12:02:51 +01:00
mratsim
43cb3441bc
Division/modulo 2x faster by removing shift in MpUint bit_length
2018-02-17 00:47:17 +01:00
mratsim
1c5da77a29
Add divmod i.e. division + modulo done!
2018-02-16 22:17:13 +01:00
mratsim
a8f50c4dbe
small quality of life fix + auto conversion of booleans
2018-02-16 21:07:51 +01:00
mratsim
5886d76ebc
Add alternative branchless shift implementation (TODO benchmark on ARM)
2018-02-16 16:47:52 +01:00
mratsim
35e80263a3
Add shift operators (WIP recursive implementation is slow)
2018-02-16 13:54:38 +01:00
mratsim
02be5c3e90
[WIP] Add multiplication with Karatsuba algorithm + basic test
2018-02-16 09:22:23 +01:00
mratsim
6f77899709
Add basic data structure, initialization and endianess test
2018-02-15 15:01:08 +01:00