ARROW-3377: [Gandiva][C++] Replace If statement with bit operations for bitmap
ARROW-3377: [Gandiva][C++] Replace If statement with bit operations for bitmap

This patch replaces the existing If statement with a bit operations for optimal performance

Author: praveenkrishna.d <praveenkrishna.d>

Closes #2672 from Praveen2112/ARROW-3377 and squashes the following commits:

d643673be <praveenkrishna.d> ARROW-3377: Replace If statement with bit operations for bitmap

cpcloud/arrow,apache/arrow,icexelloss/arrow,renesugar/arrow,wesm/arrow,icexelloss/arrow,tebeka/arrow,apache/arrow,apache/arrow,kou/arrow,icexelloss/arrow,kou/arrow,tebeka/arrow,wesm/arrow,majetideepak/arrow,cpcloud/arrow,icexelloss/arrow,kou/arrow,pcmoritz/arrow,tebeka/arrow,kou/arrow,apache/arrow,icexelloss/arrow,xhochy/arrow,kou/arrow,itaiin/arrow,laurentgo/arrow,pcmoritz/arrow,kou/arrow,laurentgo/arrow,icexelloss/arrow,xhochy/arrow,majetideepak/arrow,xhochy/arrow,wesm/arrow,xhochy/arrow,itaiin/arrow,laurentgo/arrow,renesugar/arrow,laurentgo/arrow,itaiin/arrow,xhochy/arrow,itaiin/arrow,kou/arrow,laurentgo/arrow,tebeka/arrow,itaiin/arrow,icexelloss/arrow,renesugar/arrow,pcmoritz/arrow,kou/arrow,cpcloud/arrow,apache/arrow,tebeka/arrow,cpcloud/arrow,itaiin/arrow,wesm/arrow,icexelloss/arrow,xhochy/arrow,xhochy/arrow,laurentgo/arrow,pcmoritz/arrow,pcmoritz/arrow,cpcloud/arrow,apache/arrow,xhochy/arrow,cpcloud/arrow,renesugar/arrow,icexelloss/arrow,icexelloss/arrow,itaiin/arrow,renesugar/arrow,kou/arrow,itaiin/arrow,wesm/arrow,apache/arrow,apache/arrow,tebeka/arrow,itaiin/arrow,icexelloss/arrow,pcmoritz/arrow,cpcloud/arrow,apache/arrow,kou/arrow,cpcloud/arrow,majetideepak/arrow,xhochy/arrow,itaiin/arrow,wesm/arrow,wesm/arrow,renesugar/arrow,majetideepak/arrow,majetideepak/arrow,majetideepak/arrow,apache/arrow,renesugar/arrow,icexelloss/arrow,laurentgo/arrow,wesm/arrow,itaiin/arrow,wesm/arrow,wesm/arrow,majetideepak/arrow,itaiin/arrow,kou/arrow,tebeka/arrow,laurentgo/arrow,icexelloss/arrow,tebeka/arrow,laurentgo/arrow,majetideepak/arrow,majetideepak/arrow,tebeka/arrow,cpcloud/arrow,renesugar/arrow,xhochy/arrow,kou/arrow,pcmoritz/arrow,xhochy/arrow,renesugar/arrow,itaiin/arrow,majetideepak/arrow,laurentgo/arrow,cpcloud/arrow,kou/arrow,cpcloud/arrow,cpcloud/arrow,apache/arrow,laurentgo/arrow,pcmoritz/arrow,apache/arrow,pcmoritz/arrow,laurentgo/arrow,renesugar/arrow,xhochy/arrow,pcmoritz/arrow,itaiin/arrow,cpcloud/arrow,apache/arrow,xhochy/arrow,icexelloss/arrow,laurentgo/arrow,pcmoritz/arrow,laurentgo/arrow,laurentgo/arrow,tebeka/arrow,majetideepak/arrow,wesm/arrow,pcmoritz/arrow,renesugar/arrow,xhochy/arrow,wesm/arrow,kou/arrow,majetideepak/arrow,xhochy/arrow,majetideepak/arrow,cpcloud/arrow,pcmoritz/arrow,renesugar/arrow,pcmoritz/arrow,itaiin/arrow,renesugar/arrow,majetideepak/arrow,apache/arrow,pcmoritz/arrow,renesugar/arrow,renesugar/arrow,majetideepak/arrow,wesm/arrow,wesm/arrow