Go to the documentation of this file.
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 ...
Besoin d'aide ?
Des questions ? Des problèmes ? Besoin de plus d'informations ? Contactez-nous, nous pouvons vous aider !
Visitez notre page d'Aide
Décrivez-nous de votre projet. Nous sommes là pour vous aider.
Enregistrez votre projet et nous vous aiderons à démarrer sans aucune obligation !
Partir du bon pied avec Wwise