-
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.
Get rid of macros for bit syntax construction
The first implementation of the bit syntax was done in Erlang/OTP R7B before the SMP emulator (the multi-threaded runtime system). Therefore, global variables were used to keep track of the binary being constructed. When the SMP emulator was introduced, the state of the binary being constructed needed to be local for each scheduler thread. To reduce the need for extensive rewrites, macros were used to automagically pass references to the binary construction state to the helper functions in erl_bits.c. Now bite the bullet and remove these macros. Also take the opportunity to remove the "new" part from function names. They are not exactly new.
- Loading branch information
Showing
7 changed files
with
209 additions
and
207 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
Oops, something went wrong.