Lines Matching defs:a
152 DE_INLINE float deFloatMin (float a, float b) { return (a <= b) ? a : b; } in deFloatMin()
153 DE_INLINE float deFloatMax (float a, float b) { return (a >= b) ? a : b; } in deFloatMax()
157 DE_INLINE double deMin (double a, double b) { return (a <= b) ? a : b; } in deMin()
158 DE_INLINE double deMax (double a, double b) { return (a >= b) ? a : b; } in deMax()
163 DE_INLINE float deFloatSign (float a) { return (a == 0.0f) ? 0.0f : ((a > 0.0f) ? +1.0f : -1… in deFloatSign()
164 DE_INLINE int deFloatIntSign (float a) { return (a == 0.0f) ? 0 : ((a > 0.0f) ? +1 : -1); } in deFloatIntSign()
165 DE_INLINE float deFloatFloor (float a) { return (float)floor(a); } in deFloatFloor()
166 DE_INLINE float deFloatCeil (float a) { return (float)ceil(a); } in deFloatCeil()
167 DE_INLINE float deFloatRound (float a) { return deFloatFloor(a + 0.5f); } in deFloatRound()
168 DE_INLINE float deFloatFrac (float a) { return a - deFloatFloor(a); } in deFloatFrac()
169 DE_INLINE float deFloatMod (float a, float b) { return (float)fmod(a, b); } in deFloatMod()
171 DE_INLINE float deFloatMadd (float a, float b, float c) { return (a*b) + c; } in deFloatMadd()
172 DE_INLINE float deFloatTrunc (float a) { return deFloatSign(a) * deFloatFloor(deFloatAbs(a));… in deFloatTrunc()
173 DE_INLINE float deFloatLdExp (float a, int exponent) { return (float)ldexp(a, exponent); } in deFloatLdExp()
179 DE_INLINE double deFloor (double a) { return floor(a); } in deFloor()
180 DE_INLINE double deCeil (double a) { return ceil(a); } in deCeil()
181 DE_INLINE double deRound (double a) { return floor(a + 0.5); } in deRound()
182 DE_INLINE double deFrac (double a) { return a - deFloor(a); } in deFrac()
183 DE_INLINE double deMod (double a, double b) { return fmod(a, b); } in deMod()
185 DE_INLINE double deMadd (double a, double b, double c) { return (a*b) + c; } in deMadd()
186 DE_INLINE double deTrunc (double a) { return deSign(a) * floor(fabs(a)); } in deTrunc()
187 DE_INLINE double deLdExp (double a, int exponent) { return ldexp(a, exponent); } in deLdExp()
195 DE_INLINE float deFloatPow (float a, float b) { return (float)pow(a, b); } in deFloatPow()
196 DE_INLINE float deFloatExp (float a) { return (float)exp(a); } in deFloatExp()
197 DE_INLINE float deFloatLog (float a) { return (float)log(a); } in deFloatLog()
198 DE_INLINE float deFloatExp2 (float a) { return (float)exp(a * DE_LOG_2); } in deFloatExp2()
199 DE_INLINE float deFloatLog2 (float a) { return (float)log(a) * DE_INV_LOG_2; } in deFloatLog2()
200 DE_INLINE float deFloatSqrt (float a) { return (float)sqrt(a); } in deFloatSqrt()
201 DE_INLINE float deFloatRcp (float a) { return (1.0f / a); } in deFloatRcp()
202 DE_INLINE float deFloatRsq (float a) { float s = (float)sqrt(a); return (s == 0.0f) ? 0.0f :… in deFloatRsq()
204 DE_INLINE double dePow (double a, double b) { return pow(a, b); } in dePow()
205 DE_INLINE double deExp (double a) { return exp(a); } in deExp()
206 DE_INLINE double deLog (double a) { return log(a); } in deLog()
207 DE_INLINE double deExp2 (double a) { return exp(a * log(2.0)); } in deExp2()
208 DE_INLINE double deLog2 (double a) { return log(a) / log(2.0); } in deLog2()
209 DE_INLINE double deSqrt (double a) { return sqrt(a); } in deSqrt()
210 DE_INLINE double deCbrt (double a) { return deSign(a) * dePow(deAbs(a), 1.0 / 3.0); } in deCbrt()
214 DE_INLINE float deFloatRadians (float a) { return a * (DE_PI / 180.0f); } in deFloatRadians()
215 DE_INLINE float deFloatDegrees (float a) { return a * (180.0f / DE_PI); } in deFloatDegrees()
216 DE_INLINE float deFloatSin (float a) { return (float)sin(a); } in deFloatSin()
217 DE_INLINE float deFloatCos (float a) { return (float)cos(a); } in deFloatCos()
218 DE_INLINE float deFloatTan (float a) { return (float)tan(a); } in deFloatTan()
219 DE_INLINE float deFloatAsin (float a) { return (float)asin(a); } in deFloatAsin()
220 DE_INLINE float deFloatAcos (float a) { return (float)acos(a); } in deFloatAcos()
223 DE_INLINE float deFloatSinh (float a) { return (float)sinh(a); } in deFloatSinh()
224 DE_INLINE float deFloatCosh (float a) { return (float)cosh(a); } in deFloatCosh()
225 DE_INLINE float deFloatTanh (float a) { return (float)tanh(a); } in deFloatTanh()
226 DE_INLINE float deFloatAsinh (float a) { return deFloatLog(a + deFloatSqrt(a*a + 1)); } in deFloatAsinh()
227 DE_INLINE float deFloatAcosh (float a) { return deFloatLog(a + deFloatSqrt(a*a - 1)); } in deFloatAcosh()
228 DE_INLINE float deFloatAtanh (float a) { return 0.5f*deFloatLog((1.0f+a)/(1.0f-a)); } in deFloatAtanh()
230 DE_INLINE double deSin (double a) { return sin(a); } in deSin()
231 DE_INLINE double deCos (double a) { return cos(a); } in deCos()
232 DE_INLINE double deTan (double a) { return tan(a); } in deTan()
233 DE_INLINE double deAsin (double a) { return asin(a); } in deAsin()
234 DE_INLINE double deAcos (double a) { return acos(a); } in deAcos()
237 DE_INLINE double deSinh (double a) { return sinh(a); } in deSinh()
238 DE_INLINE double deCosh (double a) { return cosh(a); } in deCosh()
239 DE_INLINE double deTanh (double a) { return tanh(a); } in deTanh()
240 DE_INLINE double deAsinh (double a) { return deLog(a + deSqrt(a*a + 1)); } in deAsinh()
241 DE_INLINE double deAcosh (double a) { return deLog(a + deSqrt(a*a - 1)); } in deAcosh()
242 DE_INLINE double deAtanh (double a) { return 0.5*deLog((1.0+a)/(1.0-a)); } in deAtanh()
246 DE_INLINE float deFloatMix (float a, float b, float t) { return a*(1.0f-t) + b*t; } in deFloatMix()
257 DE_INLINE double deMix (double a, double b, double t) { return a*(1.0-t) + b*t; } in deMix()
262 DE_INLINE deBool deFloatCmpEQ (float a, float b) { return (a == b); } in deFloatCmpEQ()
263 DE_INLINE deBool deFloatCmpNE (float a, float b) { return (a != b); } in deFloatCmpNE()
264 DE_INLINE deBool deFloatCmpLT (float a, float b) { return (a < b); } in deFloatCmpLT()
265 DE_INLINE deBool deFloatCmpLE (float a, float b) { return (a <= b); } in deFloatCmpLE()
266 DE_INLINE deBool deFloatCmpGT (float a, float b) { return (a > b); } in deFloatCmpGT()
267 DE_INLINE deBool deFloatCmpGE (float a, float b) { return (a >= b); } in deFloatCmpGE()