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

feature: add 768 alias #310

Merged
merged 6 commits into from
Sep 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- `U768` alias ([#310])
- `bytemuck` feature ([#292])
- `Uint::is_zero() -> bool` ([#296])
- `num-traits` features ([#298])
Expand Down
2 changes: 2 additions & 0 deletions src/aliases.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ alias! {
U384 B384 (384, 6);
U448 B448 (448, 7);
U512 B512 (512, 8);
U768 B768 (768, 12);
U1024 B1024 (1024, 16);
U2048 B2048 (2048, 32);
U4096 B4096 (4096, 64);
Expand Down Expand Up @@ -83,6 +84,7 @@ pub mod tests {
let _ = (U384::ZERO, U384::MAX, B384::ZERO);
let _ = (U448::ZERO, U448::MAX, B448::ZERO);
let _ = (U512::ZERO, U512::MAX, B512::ZERO);
let _ = (U768::ZERO, U768::MAX, B768::ZERO);
let _ = (U1024::ZERO, U1024::MAX, B1024::ZERO);
let _ = (U2048::ZERO, U2048::MAX, B2048::ZERO);
let _ = (U4096::ZERO, U4096::MAX, B4096::ZERO);
Expand Down