forked from ponylang/ponyc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make heap large chunk bit twiddling branchless
We use some bit twiddling operations for setting some flags on large chunks in actor heaps. Before this commit, the functionality was implemented with a ternary operator which would result in a branch. This commit changes the logic to use bit shifts instead to avoid the branching.
- Loading branch information
Showing
1 changed file
with
12 additions
and
3 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