Lines Matching refs:DE_INLINE

65 DE_INLINE int		deFloatIsInf		(float x)		{ return (x > FLT_MAX) - (x < -FLT_MAX); }  in deFloatIsInf()
66 DE_INLINE deBool deFloatIsNaN (float x) { return (x != x); } in deFloatIsNaN()
68 DE_INLINE int deIsInf (double x) { return (x > DBL_MAX) - (x < -DBL_MAX); } in deIsInf()
69 DE_INLINE deBool deIsNaN (double x) { return (x != x); } in deIsNaN()
73 DE_INLINE float deFloatAbs (float x) { return (x >= 0.0f) ? x : -x; } in deFloatAbs()
74 DE_INLINE float deFloatMin (float a, float b) { return (a <= b) ? a : b; } in deFloatMin()
75 DE_INLINE float deFloatMax (float a, float b) { return (a >= b) ? a : b; } in deFloatMax()
76 DE_INLINE float deFloatClamp (float x, float mn, float mx) { return (x <= mn) ? mn : ((x >= mx) ?… in deFloatClamp()
78 DE_INLINE double deAbs (double x) { return (x >= 0.0) ? x : -x; } in deAbs()
79 DE_INLINE double deMin (double a, double b) { return (a <= b) ? a : b; } in deMin()
80 DE_INLINE double deMax (double a, double b) { return (a >= b) ? a : b; } in deMax()
81 DE_INLINE double deClamp (double x, double mn, double mx) { return (x <= mn) ? mn : ((x >= mx) ?… in deClamp()
85 DE_INLINE float deFloatSign (float a) { return (a == 0.0f) ? 0.0f : ((a > 0.0f) ? +1.0f : -1… in deFloatSign()
86 DE_INLINE int deFloatIntSign (float a) { return (a == 0.0f) ? 0 : ((a > 0.0f) ? +1 : -1); } in deFloatIntSign()
87 DE_INLINE float deFloatFloor (float a) { return (float)floor(a); } in deFloatFloor()
88 DE_INLINE float deFloatCeil (float a) { return (float)ceil(a); } in deFloatCeil()
89 DE_INLINE float deFloatRound (float a) { return deFloatFloor(a + 0.5f); } in deFloatRound()
90 DE_INLINE float deFloatFrac (float a) { return a - deFloatFloor(a); } in deFloatFrac()
91 DE_INLINE float deFloatMod (float a, float b) { return (float)fmod(a, b); } in deFloatMod()
92 DE_INLINE float deFloatModf (float x, float* i) { double j = 0; double ret = modf(x, &j); *i =… in deFloatModf()
93 DE_INLINE float deFloatMadd (float a, float b, float c) { return (a*b) + c; } in deFloatMadd()
94 DE_INLINE float deFloatTrunc (float a) { return deFloatSign(a) * deFloatFloor(deFloatAbs(a));… in deFloatTrunc()
95 DE_INLINE float deFloatLdExp (float a, int exponent) { return (float)ldexp(a, exponent); } in deFloatLdExp()
96 DE_INLINE float deFloatFrExp (float x, int* exponent) { return (float)frexp(x, exponent); } in deFloatFrExp()
99 DE_INLINE double deSign (double x) { return deIsNaN(x) ? x : (double)((x > 0.0) - (x < 0.0)… in deSign()
100 DE_INLINE int deIntSign (double x) { return (x > 0.0) - (x < 0.0); } in deIntSign()
101 DE_INLINE double deFloor (double a) { return floor(a); } in deFloor()
102 DE_INLINE double deCeil (double a) { return ceil(a); } in deCeil()
103 DE_INLINE double deRound (double a) { return floor(a + 0.5); } in deRound()
104 DE_INLINE double deFrac (double a) { return a - deFloor(a); } in deFrac()
105 DE_INLINE double deMod (double a, double b) { return fmod(a, b); } in deMod()
106 DE_INLINE double deModf (double x, double* i) { return modf(x, i); } in deModf()
107 DE_INLINE double deMadd (double a, double b, double c) { return (a*b) + c; } in deMadd()
108 DE_INLINE double deTrunc (double a) { return deSign(a) * floor(fabs(a)); } in deTrunc()
109 DE_INLINE double deLdExp (double a, int exponent) { return ldexp(a, exponent); } in deLdExp()
111 DE_INLINE double deFrExp (double x, int* exponent) { return frexp(x, exponent); } in deFrExp()
117 DE_INLINE float deFloatPow (float a, float b) { return (float)pow(a, b); } in deFloatPow()
118 DE_INLINE float deFloatExp (float a) { return (float)exp(a); } in deFloatExp()
119 DE_INLINE float deFloatLog (float a) { return (float)log(a); } in deFloatLog()
120 DE_INLINE float deFloatExp2 (float a) { return (float)exp(a * DE_LOG_2); } in deFloatExp2()
121 DE_INLINE float deFloatLog2 (float a) { return (float)log(a) * DE_INV_LOG_2; } in deFloatLog2()
122 DE_INLINE float deFloatSqrt (float a) { return (float)sqrt(a); } in deFloatSqrt()
123 DE_INLINE float deFloatRcp (float a) { return (1.0f / a); } in deFloatRcp()
124 DE_INLINE float deFloatRsq (float a) { float s = (float)sqrt(a); return (s == 0.0f) ? 0.0f :… in deFloatRsq()
126 DE_INLINE double dePow (double a, double b) { return pow(a, b); } in dePow()
127 DE_INLINE double deExp (double a) { return exp(a); } in deExp()
128 DE_INLINE double deLog (double a) { return log(a); } in deLog()
129 DE_INLINE double deExp2 (double a) { return exp(a * log(2.0)); } in deExp2()
130 DE_INLINE double deLog2 (double a) { return log(a) / log(2.0); } in deLog2()
131 DE_INLINE double deSqrt (double a) { return sqrt(a); } in deSqrt()
132 DE_INLINE double deCbrt (double a) { return deSign(a) * dePow(deAbs(a), 1.0 / 3.0); } in deCbrt()
136 DE_INLINE float deFloatRadians (float a) { return a * (DE_PI / 180.0f); } in deFloatRadians()
137 DE_INLINE float deFloatDegrees (float a) { return a * (180.0f / DE_PI); } in deFloatDegrees()
138 DE_INLINE float deFloatSin (float a) { return (float)sin(a); } in deFloatSin()
139 DE_INLINE float deFloatCos (float a) { return (float)cos(a); } in deFloatCos()
140 DE_INLINE float deFloatTan (float a) { return (float)tan(a); } in deFloatTan()
141 DE_INLINE float deFloatAsin (float a) { return (float)asin(a); } in deFloatAsin()
142 DE_INLINE float deFloatAcos (float a) { return (float)acos(a); } in deFloatAcos()
143 DE_INLINE float deFloatAtan2 (float y, float x) { return (float)atan2(y, x); } in deFloatAtan2()
144 DE_INLINE float deFloatAtanOver (float yOverX) { return (float)atan(yOverX); } in deFloatAtanOver()
145 DE_INLINE float deFloatSinh (float a) { return (float)sinh(a); } in deFloatSinh()
146 DE_INLINE float deFloatCosh (float a) { return (float)cosh(a); } in deFloatCosh()
147 DE_INLINE float deFloatTanh (float a) { return (float)tanh(a); } in deFloatTanh()
148 DE_INLINE float deFloatAsinh (float a) { return deFloatLog(a + deFloatSqrt(a*a + 1)); } in deFloatAsinh()
149 DE_INLINE float deFloatAcosh (float a) { return deFloatLog(a + deFloatSqrt(a*a - 1)); } in deFloatAcosh()
150 DE_INLINE float deFloatAtanh (float a) { return 0.5f*deFloatLog((1.0f+a)/(1.0f-a)); } in deFloatAtanh()
152 DE_INLINE double deSin (double a) { return sin(a); } in deSin()
153 DE_INLINE double deCos (double a) { return cos(a); } in deCos()
154 DE_INLINE double deTan (double a) { return tan(a); } in deTan()
155 DE_INLINE double deAsin (double a) { return asin(a); } in deAsin()
156 DE_INLINE double deAcos (double a) { return acos(a); } in deAcos()
157 DE_INLINE double deAtan2 (double y, double x) { return atan2(y, x); } in deAtan2()
158 DE_INLINE double deAtanOver (double yOverX) { return atan(yOverX); } in deAtanOver()
159 DE_INLINE double deSinh (double a) { return sinh(a); } in deSinh()
160 DE_INLINE double deCosh (double a) { return cosh(a); } in deCosh()
161 DE_INLINE double deTanh (double a) { return tanh(a); } in deTanh()
162 DE_INLINE double deAsinh (double a) { return deLog(a + deSqrt(a*a + 1)); } in deAsinh()
163 DE_INLINE double deAcosh (double a) { return deLog(a + deSqrt(a*a - 1)); } in deAcosh()
164 DE_INLINE double deAtanh (double a) { return 0.5*deLog((1.0+a)/(1.0-a)); } in deAtanh()
168 DE_INLINE float deFloatMix (float a, float b, float t) { return a*(1.0f-t) + b*t; } in deFloatMix()
169 DE_INLINE float deFloatStep (float limit, float val) { return (val < limit) ? 0.0f : 1.0f; } in deFloatStep()
170 DE_INLINE float deFloatSmoothStep (float e0, float e1, float v) in deFloatSmoothStep()
179 DE_INLINE double deMix (double a, double b, double t) { return a*(1.0-t) + b*t; } in deMix()
180 DE_INLINE double deStep (double limit, double val) { return (val < limit) ? 0.0 : 1.0; } in deStep()
184 DE_INLINE deBool deFloatCmpEQ (float a, float b) { return (a == b); } in deFloatCmpEQ()
185 DE_INLINE deBool deFloatCmpNE (float a, float b) { return (a != b); } in deFloatCmpNE()
186 DE_INLINE deBool deFloatCmpLT (float a, float b) { return (a < b); } in deFloatCmpLT()
187 DE_INLINE deBool deFloatCmpLE (float a, float b) { return (a <= b); } in deFloatCmpLE()
188 DE_INLINE deBool deFloatCmpGT (float a, float b) { return (a > b); } in deFloatCmpGT()
189 DE_INLINE deBool deFloatCmpGE (float a, float b) { return (a >= b); } in deFloatCmpGE()
199 DE_INLINE float deInt32ToFloat (deInt32 x) { return (float)x; } in deInt32ToFloat()
211 DE_INLINE deInt32 deChopFloatToInt32 (float x) { return (deInt32)x; } in deChopFloatToInt32()
212 DE_INLINE deInt32 deFloorFloatToInt32 (float x) { return (deInt32)(deFloatFloor(x)); } in deFloorFloatToInt32()
213 DE_INLINE deInt32 deCeilFloatToInt32 (float x) { return (deInt32)(deFloatCeil(x)); } in deCeilFloatToInt32()
216 DE_INLINE deInt16 deRoundFloatToInt16 (float x) { if(x >= 0.0f) return (deInt16)(x + 0.5f); els… in deRoundFloatToInt16()
217 DE_INLINE deInt32 deRoundFloatToInt32 (float x) { if(x >= 0.0f) return (deInt32)(x + 0.5f); else… in deRoundFloatToInt32()
218 DE_INLINE deInt64 deRoundFloatToInt64 (float x) { if(x >= 0.0f) return (deInt64)(x + 0.5f); else… in deRoundFloatToInt64()