engine
 
载入中...
搜索中...
未找到
静态 Public 成员函数 | 所有成员列表
FClangPlatformMath结构体 参考

Clang implementation of math functions 更多...

#include <ClangPlatformMath.h>

+ 类 FClangPlatformMath 继承关系图:

静态 Public 成员函数

static FORCEINLINE uint32 CountLeadingZeros (uint32 Value)
 Counts the number of leading zeros in the bit representation of the value 更多...
 
static FORCEINLINE uint64 CountLeadingZeros64 (uint64 Value)
 Counts the number of leading zeros in the bit representation of the value 更多...
 
static FORCEINLINE uint8 CountLeadingZeros8 (uint8 Value)
 Counts the number of leading zeros in the bit representation of the value 更多...
 
static FORCEINLINE uint32 CountTrailingZeros (uint32 Value)
 Counts the number of trailing zeros in the bit representation of the value 更多...
 
static FORCEINLINE uint64 CountTrailingZeros64 (uint64 Value)
 Counts the number of trailing zeros in the bit representation of the value 更多...
 
- 静态 Public 成员函数 继承自 FGenericPlatformMath
template<class T >
static CONSTEXPR FORCEINLINE T Abs (const T A)
 Computes absolute value in a generic way
 
static FORCEINLINE uint32 CeilLogTwo (uint32 Arg)
 Returns smallest N such that (1<<N)>=Arg. 更多...
 
static FORCEINLINE double CeilToDouble (double F)
 Converts a double to the nearest greater or equal integer. 更多...
 
static FORCEINLINE float CeilToFloat (float F)
 Converts a float to the nearest greater or equal integer. 更多...
 
static FORCEINLINE int32 CeilToInt (float F)
 Converts a float to the nearest greater or equal integer. 更多...
 
static FORCEINLINE uint32 CountLeadingZeros (uint32 Value)
 Counts the number of leading zeros in the bit representation of the 32-bit value 更多...
 
static FORCEINLINE uint64 CountLeadingZeros64 (uint64 Value)
 Counts the number of leading zeros in the bit representation of the 64-bit value 更多...
 
static FORCEINLINE uint8 CountLeadingZeros8 (uint8 Value)
 Counts the number of leading zeros in the bit representation of the 8-bit value 更多...
 
static FORCEINLINE uint32 CountTrailingZeros (uint32 Value)
 Counts the number of trailing zeros in the bit representation of the value 更多...
 
static FORCEINLINE uint64 CountTrailingZeros64 (uint64 Value)
 Counts the number of trailing zeros in the bit representation of the value 更多...
 
static CONSTEXPR FORCEINLINE double FloatSelect (double Comparand, double ValueGEZero, double ValueLTZero)
 Returns value based on comparand. 更多...
 
static CONSTEXPR FORCEINLINE float FloatSelect (float Comparand, float ValueGEZero, float ValueLTZero)
 Returns value based on comparand. 更多...
 
static FORCEINLINE uint32 FloorLog2 (uint32 Value)
 Computes the base 2 logarithm for an integer value that is greater than 0. 更多...
 
static FORCEINLINE uint64 FloorLog2_64 (uint64 Value)
 Computes the base 2 logarithm for a 64-bit value that is greater than 0. 更多...
 
static FORCEINLINE double FloorToDouble (double F)
 Converts a double to a less or equal integer. 更多...
 
static FORCEINLINE float FloorToFloat (float F)
 Converts a float to the nearest less or equal integer. 更多...
 
static FORCEINLINE int32 FloorToInt (float F)
 Converts a float to a nearest less or equal integer. 更多...
 
static CORE_API FORCENOINLINE float Fmod (float X, float Y)
 Returns the floating-point remainder of X / Y Warning: Always returns remainder toward 0, not toward the smaller multiple of Y. 更多...
 
static FORCEINLINE float Frac (float Value)
 Returns the fractional part of a float. 更多...
 
static FORCEINLINE float Fractional (float Value)
 Returns signed fractional part of a float. 更多...
 
static FORCEINLINE float FRand ()
 Returns a random float between 0 and 1, inclusive.
 
static CORE_API int32 GetRandSeed ()
 Returns the current seed for SRand().
 
static FORCEINLINE float InvSqrt (float F)
 Computes a fully accurate inverse square root
 
static FORCEINLINE float InvSqrtEst (float F)
 Computes a faster but less accurate inverse square root
 
static FORCEINLINE bool IsFinite (float A)
 Return true if value is finite (not NaN and not Infinity).
 
static FORCEINLINE bool IsNaN (float A)
 Return true if value is NaN (not a number).
 
template<class T >
static CONSTEXPR FORCEINLINE T Max (const T A, const T B)
 Returns higher value in a generic way
 
template<class T >
static FORCEINLINE T Max (const TArray< T > &Values, int32 *MaxIndex=NULL)
 Max of Array 更多...
 
template<class T >
static CONSTEXPR FORCEINLINE T Min (const T A, const T B)
 Returns lower value in a generic way
 
template<class T >
static FORCEINLINE T Min (const TArray< T > &Values, int32 *MinIndex=NULL)
 Min of Array 更多...
 
static FORCEINLINE double Modf (const double InValue, double *OutIntPart)
 Breaks the given value into an integral and a fractional part. 更多...
 
static FORCEINLINE float Modf (const float InValue, float *OutIntPart)
 Breaks the given value into an integral and a fractional part. 更多...
 
static FORCEINLINE uint32 MortonCode2 (uint32 x)
 Spreads bits to every other.
 
static FORCEINLINE uint32 MortonCode3 (uint32 x)
 Spreads bits to every 3rd.
 
static FORCEINLINE int32 Rand ()
 Returns a random integer between 0 and RAND_MAX, inclusive
 
static FORCEINLINE void RandInit (int32 Seed)
 Seeds global random number functions Rand() and FRand()
 
static FORCEINLINE uint32 ReverseMortonCode2 (uint32 x)
 Reverses MortonCode2. 更多...
 
static FORCEINLINE uint32 ReverseMortonCode3 (uint32 x)
 Reverses MortonCode3. 更多...
 
static FORCEINLINE double RoundToDouble (double F)
 Converts a double to the nearest integer. 更多...
 
static FORCEINLINE float RoundToFloat (float F)
 Converts a float to the nearest integer. 更多...
 
static FORCEINLINE int32 RoundToInt (float F)
 Converts a float to the nearest integer. 更多...
 
static FORCEINLINE uint32 RoundUpToPowerOfTwo (uint32 Arg)
 
template<class T >
static CONSTEXPR FORCEINLINE T Sign (const T A)
 Returns 1, 0, or -1 depending on relation of T to 0
 
static CORE_API float SRand ()
 Returns a seeded random float in the range [0,1), using the seed from SRandInit().
 
static CORE_API void SRandInit (int32 Seed)
 Seeds future calls to SRand()
 
static FORCEINLINE double TruncToDouble (double F)
 Converts a double to an integer value with truncation towards zero. 更多...
 
static FORCEINLINE float TruncToFloat (float F)
 Converts a float to an integer value with truncation towards zero. 更多...
 
static CONSTEXPR FORCEINLINE int32 TruncToInt (float F)
 Converts a float to an integer with truncation towards zero. 更多...
 

额外继承的成员函数

- Public 成员函数 继承自 FGenericPlatformMath
template<>
FORCEINLINE float Abs (const float A)
 Float specialization
 
template<>
FORCEINLINE VectorRegister Max (const VectorRegister A, const VectorRegister B)
 Returns the larger of the two values (operates on each component individually)
 
template<>
FORCEINLINE VectorRegister Min (const VectorRegister A, const VectorRegister B)
 Returns the smaller of the two values (operates on each component individually)
 

详细描述

Clang implementation of math functions

成员函数说明

◆ CountLeadingZeros()

static FORCEINLINE uint32 FClangPlatformMath::CountLeadingZeros ( uint32  Value)
inlinestatic

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

参数
Valuethe value to determine the number of leading zeros for
返回
the number of zeros before the first "on" bit

◆ CountLeadingZeros64()

static FORCEINLINE uint64 FClangPlatformMath::CountLeadingZeros64 ( uint64  Value)
inlinestatic

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

参数
Valuethe value to determine the number of leading zeros for
返回
the number of zeros before the first "on" bit

◆ CountLeadingZeros8()

static FORCEINLINE uint8 FClangPlatformMath::CountLeadingZeros8 ( uint8  Value)
inlinestatic

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

参数
Valuethe value to determine the number of leading zeros for
返回
the number of zeros before the first "on" bit

◆ CountTrailingZeros()

static FORCEINLINE uint32 FClangPlatformMath::CountTrailingZeros ( uint32  Value)
inlinestatic

Counts the number of trailing zeros in the bit representation of the value

参数
Valuethe value to determine the number of trailing zeros for
返回
the number of zeros after the last "on" bit

◆ CountTrailingZeros64()

static FORCEINLINE uint64 FClangPlatformMath::CountTrailingZeros64 ( uint64  Value)
inlinestatic

Counts the number of trailing zeros in the bit representation of the value

参数
Valuethe value to determine the number of trailing zeros for
返回
the number of zeros after the last "on" bit

该结构体的文档由以下文件生成: