浏览该文件的文档.
31 #ifndef _AK_FP_UTILS_H_
32 #define _AK_FP_UTILS_H_
36 #define AK_FSEL( __a__, __b__, __c__) (((__a__) >= 0) ? (__b__) : (__c__))
41 return (fA < fB ? fA : fB);
47 return (fA > fB ? fA : fB);
53 if ( in_fComparandA > in_fComparandB )
54 io_fVariableToSet = in_fValueIfTrue;
60 if ( in_fComparandA >= in_fComparandB )
61 io_fVariableToSet = in_fValueIfTrue;
67 if ( in_fComparandA < in_fComparandB )
68 io_fVariableToSet = in_fValueIfTrue;
74 if ( in_fComparandA <= in_fComparandB )
75 io_fVariableToSet = in_fValueIfTrue;
78 #endif //_AK_FP_UTILS_H_
static AkForceInline void AK_FPSetValLTE(AkReal32 in_fComparandA, AkReal32 in_fComparandB, AkReal32 &io_fVariableToSet, AkReal32 in_fValueIfTrue)
Branchless comparison (where available) setting 3rd argument to 4th argument if 1st argument is less ...
static AkForceInline void AK_FPSetValGTE(AkReal32 in_fComparandA, AkReal32 in_fComparandB, AkReal32 &io_fVariableToSet, AkReal32 in_fValueIfTrue)
Branchless comparison (where available) setting 3rd argument to 4th argument if 1st argument is great...
static AkForceInline AkReal32 AK_FPMax(AkReal32 fA, AkReal32 fB)
Branchless (where available) version returning maximum value between two AkReal32 values
static AkForceInline void AK_FPSetValGT(AkReal32 in_fComparandA, AkReal32 in_fComparandB, AkReal32 &io_fVariableToSet, AkReal32 in_fValueIfTrue)
Branchless comparison (where available) setting 3rd argument to 4th argument if 1st argument is great...
static AkForceInline AkReal32 AK_FPMin(AkReal32 fA, AkReal32 fB)
Branchless (where available) version returning minimum value between two AkReal32 values
static AkForceInline void AK_FPSetValLT(AkReal32 in_fComparandA, AkReal32 in_fComparandB, AkReal32 &io_fVariableToSet, AkReal32 in_fValueIfTrue)
Branchless comparison (where available) setting 3rd argument to 4th argument if 1st argument is less ...
介绍一下自己的项目。我们会竭力为您提供帮助。
来注册自己的项目,我们帮您快速入门,不带任何附加条件!
开始 Wwise 之旅