cfrac
This commit is contained in:
parent
d93aac8ad8
commit
2f317d8652
|
|
@ -190,6 +190,15 @@ cceil(double f) {
|
|||
#endif
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: cfrac
|
||||
// Description: Returns the fractional component of f: f - cfloor(f).
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE double
|
||||
cfrac(double f) {
|
||||
return f - cfloor(f);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: csqrt
|
||||
// Description:
|
||||
|
|
|
|||
|
|
@ -46,6 +46,7 @@ INLINE float cmod(float x, float y);
|
|||
|
||||
INLINE double cfloor(double f);
|
||||
INLINE double cceil(double f);
|
||||
INLINE double cfrac(double f);
|
||||
INLINE double csqrt(double v);
|
||||
INLINE double csin(double v);
|
||||
INLINE double ccos(double v);
|
||||
|
|
|
|||
Loading…
Reference in New Issue