arrow-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Praveen Krishna (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ARROW-3377) [C++] Remove If statement from bit map set function
Date Mon, 01 Oct 2018 10:35:00 GMT
Praveen Krishna created ARROW-3377:
--------------------------------------

             Summary: [C++] Remove If statement from bit map set function
                 Key: ARROW-3377
                 URL: https://issues.apache.org/jira/browse/ARROW-3377
             Project: Apache Arrow
          Issue Type: Improvement
          Components: Gandiva
            Reporter: Praveen Krishna


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
{code:java}
bmap[byteIdx] ^= (-value ^ bmap[byteIdx]) & (1UL << bitIdx);
{code}
 which performs the same operation and we have avoid the branching.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message