FGenericPlatformMath::CountLeadingZeros64

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

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "GenericPlatform/GenericPlatformMath.h"

Syntax

static uint64 CountLeadingZeros64
(
    uint64 Value
)

Remarks

Counts the number of leading zeros in the bit representation of the 64-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