Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-3377

[Gandiva][C++] Remove If statement from bit map set function

    Details

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                praveenbingo Praveen Kumar Desabandu
                Reporter:
                praveen_krishna Praveen Krishna
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 10m
                  2h 10m