FGenericPlatformMath::CountLeadingZeros8

Counts the number of leading zeros in the bit representation of the 8-bit value

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMath.h

Include

#include "GenericPlatform/GenericPlatformMath.h"

Syntax

static uint8 CountLeadingZeros8
(
    uint8 Value
)

Remarks

Counts the number of leading zeros in the bit representation of the 8-bit value

Returns

the number of zeros before the first "on" bit

Parameters

Parameter

Description

Value

the value to determine the number of leading zeros for

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss