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:04:00 UTC

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

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

Daniel Becker updated IMPALA-12086:
-----------------------------------
    Description: 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.  (was: 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.)

> 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, 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