Lines Matching refs:d
311 inline bool isFinite(double d) in isFinite() argument
313 return SAL_MATH_FINITE(d) != 0; in isFinite()
322 inline bool isInf(double d) in isInf() argument
325 return (SAL_MATH_FINITE(d) == 0) && in isInf()
326 (reinterpret_cast< sal_math_Double * >(&d)->inf_parts.fraction_hi == 0) in isInf()
327 && (reinterpret_cast< sal_math_Double * >(&d)->inf_parts.fraction_lo in isInf()
333 inline bool isNan(double d) in isNan() argument
336 return (SAL_MATH_FINITE(d) == 0) && ( in isNan()
337 (reinterpret_cast< sal_math_Double * >(&d)->inf_parts.fraction_hi != 0) in isNan()
338 || (reinterpret_cast< sal_math_Double * >(&d)->inf_parts.fraction_lo in isNan()
344 inline bool isSignBitSet(double d) in isSignBitSet() argument
346 return reinterpret_cast< sal_math_Double * >(&d)->inf_parts.sign != 0; in isSignBitSet()
386 inline bool isValidArcArg(double d) in isValidArcArg() argument
388 return fabs(d) in isValidArcArg()
396 inline double sin(double d) in sin() argument
398 if ( isValidArcArg( d ) ) in sin()
399 return ::sin( d ); in sin()
400 setNan( &d ); in sin()
401 return d; in sin()
406 inline double cos(double d) in cos() argument
408 if ( isValidArcArg( d ) ) in cos()
409 return ::cos( d ); in cos()
410 setNan( &d ); in cos()
411 return d; in cos()
416 inline double tan(double d) in tan() argument
418 if ( isValidArcArg( d ) ) in tan()
419 return ::tan( d ); in tan()
420 setNan( &d ); in tan()
421 return d; in tan()