You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Wes McKinney (JIRA)" <ji...@apache.org> on 2018/10/02 22:58:00 UTC
[jira] [Assigned] (ARROW-3377) [Gandiva][C++] Remove If statement
from bit map set function
[ https://issues.apache.org/jira/browse/ARROW-3377?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wes McKinney reassigned ARROW-3377:
-----------------------------------
Assignee: Praveen Kumar Desabandu
> [Gandiva][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: C++, Gandiva
> Reporter: Praveen Krishna
> Assignee: Praveen Kumar Desabandu
> Priority: Major
> Labels: pull-request-available
> Fix For: 0.11.0
>
> Time Spent: 2h 10m
> Remaining Estimate: 0h
>
> 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)