#ifndef _FASTMATH_H_
#define _FASTMATH_H_

/*-=-=-=-=-=-=-=-=-=-=-=- RCCL/RCI Notice of Copyright -=-=-=-=-=-=-=-=-=-=-*
 *									    *
 *	Copyright (C) 1991 by John E. Lloyd.				    *
 *									    *
 *	Information on copyright permissions, as well as a complete	    *
 *	disclaimer of warranty, is given in the file COPYRIGHT.		    *
 *									    *
 *-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/

/* *** DO NOT DELETE THIS LINE: system Makefile uses it */
#if VXWORKS_CFG
#define FASTMATH_ENABLED 0
#else
#define FASTMATH_ENABLED 1
#endif
/* *** AND DO NOT DELETE THIS LINE EITHER */

#if FASTMATH_ENABLED

float SIN();
float COS();
float ATAN2();
float SQRT();

#else

#include <math.h>

#define ATAN2(y,x)	atan2(y,x)
#define SINCOS(a, s, c) { *(s) = sin(a); *(c) = cos(a); }
#define COS(x)		cos(x)
#define SIN(x)		sin(x)
#define SQRT(x)		sqrt(x)

#endif

#endif
