-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We may need additional variants of the align_up() helper function for different integer types in the future. While it is possible to abstract over all the nitty gritty details of generic integer operations, it requires complex trait machinery in the form of the num-traits crate. For us it makes more sense to just duplicate the logic via macros. Prepare for that by defining align_up() in terms of a macro. Signed-off-by: Daniel Müller <[email protected]>
- Loading branch information
Showing
2 changed files
with
23 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters