-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Emit shorter code for strict bitstring generators
The skip clause of the generator (which handles the case when the bitstring does not match the pattern) used to test whether the bit_size of the argument is above 0, which requires two BIF calls. The new version pattern matches against any binary and checks that it is not the empty binary with a single BIF call.
- Loading branch information
1 parent
9948963
commit 34b19c2
Showing
1 changed file
with
8 additions
and
28 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