-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a SHORT_OPERAND_VALUE_SIZE constant instead of a magic number.
- Loading branch information
Showing
1 changed file
with
2 additions
and
1 deletion.
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
It's very unclear what this is a size of (bytes? bits? megabytes?) -- really it's a max value in disguise. I'm not a big fan of punting this to a
pow
later. Personally I tend to say "SHORT_OPERAND_MASK: u64 b 0b111111" or whatever and then do a... & ... != 0
later as I think that best signals the underlying intent.