[
https://issues.apache.org/jira/browse/IMPALA-12086?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Becker resolved IMPALA-12086.
------------------------------------
Resolution: Fixed
> 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
> Priority: Major
> 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 (see https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html), 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)