-
Type:
Improvement
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 0.11.0
-
Component/s: C++, C++ - Gandiva
-
Labels:
-
External issue URL:
Hello,
For setting a bit in bit map (which is used in gandiva) we have a branch statement which can be replaced by bit operations like this
bmap[byteIdx] ^= (-value ^ bmap[byteIdx]) & (1UL << bitIdx);
which performs the same operation and we have avoid the branching.
- links to