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

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

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)

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