/Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h
Checks whether a number is a power of two.
true if Value is a power of two
template<typename T> static constexpr bool IsPowerOfTwo ( T Value )