Bit32.countlz

From GiderosMobile
Revision as of 14:26, 13 July 2023 by Hgy29 (talk | contribs) (Text replacement - "</source>" to "</syntaxhighlight>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2022.3
Class: bit32

Description

Returns the number of consecutive zero bits in the 32-bit representation of the provided number starting from the left-most (most significant) bit. Returns 32 if the provided number is zero.

(number) = bit32.countlz(n)

Parameters

n: (number) value

Return values

Returns (number) result, returns 32 if the provided number is zero

See also

Bitwise Operators