FGenericPlatformMath::CeilLogTwo

Returns smallest N such that (1<=Arg. CeilLogTwo(0)=0 because (1<<0)=1 >= 0.

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

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

Include

#include "GenericPlatform/GenericPlatformMath.h"

Syntax

static uint32 CeilLogTwo
(
    uint32 Arg
)

Remarks

Returns smallest N such that (1<=Arg.

CeilLogTwo(0)=0 because (1<<0)=1 >= 0.