-
Notifications
You must be signed in to change notification settings - Fork 75
Add U8320 and U12288
#1007
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
Add U8320 and U12288
#1007
Conversation
676453c to
3ecf6b8
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1007 +/- ##
=======================================
Coverage 79.87% 79.87%
=======================================
Files 163 163
Lines 17593 17593
=======================================
Hits 14053 14053
Misses 3540 3540 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
I don't think it makes sense to just keep adding sizes indefinitely. The type aliases are mostly for convenience. The core implementation is const generic. What are you actually using them for? Can you just define your own type aliases? |
|
Yeah, it makes sense. I use |
|
We could potentially export them. Otherwise it’s just |
|
It is not exactly equivalent since some traits involving size modifications are implemented only for size aliases ( |
|
Indeed, even if I made the Instead, I changed the PR to only add the 2 types that I need, if that it okay. |
extra-sizes-16kU8320 and U12288
|
Perhaps we should address #793 as an alternative? I would prefer to avoid having to start adding a bunch of bespoke sizes for various use cases. We do that in |
|
#793 looks like a good suggestion, but I don't think I could implement it here as I am not that familiar with traits and generics. |
|
I suppose I could. Completely forgot I even filed that issue. |
|
@fjarri that'd be great |
|
Would you rather I replaced the existing traits, or added another set? |
|
I’ll leave that at your discretion, but if we could minimize the total number of traits that’d be great |
|
Started #1008 |
|
This should be obviated by #1008 |
In #228 and #229 extra sizes up to 8k were implemented. In some usages, we need the extra sizes to go up to 16k (for example when two 6k numbers are multiplied).
For our use-case
U12288and8320in addition to extra-sizes would be enough, but for completeness, I added all values in 64 bit increments to a new featureextra-sizes-16k.Let me know if you would rather prefer if we only add these two extra-sizes we need to
extra-sizesfeature.