You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Daniel Becker (Jira)" <ji...@apache.org> on 2023/04/24 12:26:00 UTC

[jira] [Work started] (IMPALA-12086) Fix BitUtil::CountLeadingZeros for zero

     [ https://issues.apache.org/jira/browse/IMPALA-12086?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on IMPALA-12086 started by Daniel Becker.
----------------------------------------------
> 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)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org