14#if PLATFORM_ENABLE_VECTORINTRINSICS
20 #pragma intrinsic(_BitScanReverse)
26 unsigned long BitIndex;
32 unsigned long BitIndex = 0;
47 unsigned long BitIndex;
49 return uint8(8 - BitIndex);
63 unsigned long BitIndex;
72 return 32 - CountLeadingZeros(Arg - 1);
77 return 1u << CeilLogTwo(Arg);
82 return uint64(1) << CeilLogTwo64(Arg);
85 #pragma intrinsic(_BitScanReverse64)
89 unsigned long BitIndex;
95 unsigned long BitIndex = 0;
104 return 64 - CountLeadingZeros64(Arg - 1);
118 unsigned long BitIndex;
120 return 63 - BitIndex;
134 unsigned long BitIndex;
149 unsigned long BitIndex;
151 return 32 - BitIndex;
155#if PLATFORM_ENABLE_POPCNT_INTRINSIC
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127