as-bignum icon indicating copy to clipboard operation
as-bignum copied to clipboard

u256 on top of u128

Open k06a opened this issue 2 years ago • 2 comments

Why not to build u256 on top of u128? Implementation will be the same as u128 on top of u64. Implementation can even be templated by subtype.

k06a avatar Jan 04 '22 10:01 k06a

I wasn't done for performance reasons. as-bignum exclusively focused on perf. Building over u128 will cause to significant overhead

MaxGraey avatar Jan 04 '22 16:01 MaxGraey

@MaxGraey agree, but I would prefer to have working implementation first and optimized shipped with update.

k06a avatar Jan 04 '22 19:01 k06a