Daniel Becker created IMPALA-12086:
--------------------------------------
Summary: Fix BitUtil::CountLeadingZeros for zero
Key: IMPALA-12086
URL: https://issues.apache.org/jira/browse/IMPALA-12086
Project: IMPALA
Issue Type: Bug
Components: Backend
Reporter: Daniel Becker
Assignee: Daniel Becker
Fix For: Impala 4.3.0
BitUtil::CountLeadingZeros uses {{__builtin_clz()}} and {{__builtin_clzll()
}}to return the number of zeros in a value. Calling these functions with 0 is
undefined, so CountLeadingZeros should check for zero and only call these
functions if the argument is non-zero.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)