diff options
| author | Marc Tiehuis <marctiehuis@gmail.com> | 2018-06-09 10:24:20 +1200 |
|---|---|---|
| committer | Marc Tiehuis <marctiehuis@gmail.com> | 2018-06-10 18:24:34 +1200 |
| commit | dc8bda7e0203410132e0689b7561d9e8731176e9 (patch) | |
| tree | 130a82f97f7b59279c15401a2442df8d1c7d87bc /src/codegen.cpp | |
| parent | 0a95b0f1ffeb8ae5ee317b02626890adebe5ec63 (diff) | |
| download | zig-dc8bda7e0203410132e0689b7561d9e8731176e9.tar.gz zig-dc8bda7e0203410132e0689b7561d9e8731176e9.zip | |
Add arbitrary-precision integer to std
A few notes on the implementation:
- Any unsigned power of two integer type less than 64 bits in size is supported
as a Limb type.
- The algorithms used are kept simple for the moment. More complicated
algorithms are generally only more useful as integer sizes increase a
lot and I don't expect our current usage to be used for this purpose
just yet.
- All branches (practically) have been covered by tests.
See https://github.com/tiehuis/zig-bn/tree/986a2b3243d0454b8430a6adf4ad48611850c1b8/bench
for rough performance comparison numbers.
Closes #364.
Diffstat (limited to 'src/codegen.cpp')
0 files changed, 0 insertions, 0 deletions
