aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorMarc Tiehuis <marctiehuis@gmail.com>2018-06-09 10:24:20 +1200
committerMarc Tiehuis <marctiehuis@gmail.com>2018-06-10 18:24:34 +1200
commitdc8bda7e0203410132e0689b7561d9e8731176e9 (patch)
tree130a82f97f7b59279c15401a2442df8d1c7d87bc /src/codegen.cpp
parent0a95b0f1ffeb8ae5ee317b02626890adebe5ec63 (diff)
downloadzig-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