[詳解]
30 #ifndef _AK_FP_UTILS_H_
31 #define _AK_FP_UTILS_H_
35 #define AK_FSEL( __a__, __b__, __c__) (((__a__) >= 0) ? (__b__) : (__c__))
40 return (fA < fB ? fA : fB);
46 return (fA > fB ? fA : fB);
52 if ( in_fComparandA > in_fComparandB )
53 io_fVariableToSet = in_fValueIfTrue;
59 if ( in_fComparandA >= in_fComparandB )
60 io_fVariableToSet = in_fValueIfTrue;
66 if ( in_fComparandA < in_fComparandB )
67 io_fVariableToSet = in_fValueIfTrue;
73 if ( in_fComparandA <= in_fComparandB )
74 io_fVariableToSet = in_fValueIfTrue;
77 #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 ...
float AkReal32
32-bit floating point
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からはじめよう