Lines Matching refs:d
318 inline bool isFinite(double d) in isFinite() argument
320 return SAL_MATH_FINITE(d) != 0; in isFinite()
329 inline bool isInf(double d) in isInf() argument
332 return (SAL_MATH_FINITE(d) == 0) && in isInf()
333 (reinterpret_cast< sal_math_Double * >(&d)->inf_parts.fraction_hi == 0) in isInf()
334 && (reinterpret_cast< sal_math_Double * >(&d)->inf_parts.fraction_lo in isInf()
340 inline bool isNan(double d) in isNan() argument
343 return (SAL_MATH_FINITE(d) == 0) && ( in isNan()
344 (reinterpret_cast< sal_math_Double * >(&d)->inf_parts.fraction_hi != 0) in isNan()
345 || (reinterpret_cast< sal_math_Double * >(&d)->inf_parts.fraction_lo in isNan()
351 inline bool isSignBitSet(double d) in isSignBitSet() argument
353 return reinterpret_cast< sal_math_Double * >(&d)->inf_parts.sign != 0; in isSignBitSet()
393 inline bool isValidArcArg(double d) in isValidArcArg() argument
395 return fabs(d) in isValidArcArg()
403 inline double sin(double d) in sin() argument
405 if ( isValidArcArg( d ) ) in sin()
406 return ::sin( d ); in sin()
407 setNan( &d ); in sin()
408 return d; in sin()
413 inline double cos(double d) in cos() argument
415 if ( isValidArcArg( d ) ) in cos()
416 return ::cos( d ); in cos()
417 setNan( &d ); in cos()
418 return d; in cos()
423 inline double tan(double d) in tan() argument
425 if ( isValidArcArg( d ) ) in tan()
426 return ::tan( d ); in tan()
427 setNan( &d ); in tan()
428 return d; in tan()