Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

u256 on top of u128 #71

Open
k06a opened this issue Jan 4, 2022 · 2 comments
Open

u256 on top of u128 #71

k06a opened this issue Jan 4, 2022 · 2 comments

Comments

@k06a
Copy link

k06a commented Jan 4, 2022

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.

@MaxGraey
Copy link
Owner

MaxGraey commented Jan 4, 2022

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

@k06a
Copy link
Author

k06a commented Jan 4, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants