sincos.c
1 /******************************************************************** 2 * Description: sincos.c 3 * 4 * Derived from a work by Fred Proctor & Will Shackleford 5 * 6 * Author: 7 * License: LGPL Version 2 8 * System: Linux 9 * 10 * Copyright (c) 2004 All rights reserved. 11 ********************************************************************/ 12 /* 13 sincos.c 14 15 Modification history: 16 17 21-Jan-2004 P.C. Moved across from the original EMC source tree. 18 */ 19 20 #include "config.h" 21 22 #if defined(__KERNEL__) 23 #undef HAVE_SINCOS 24 #endif 25 26 #ifndef HAVE_SINCOS 27 28 #include "rtapi_math.h" 29 #include "sincos.h" 30 31 #ifndef HAVE___SINCOS 32 33 #include "posemath.h" 34 35 void sincos(double x, double *sx, double *cx) 36 { 37 *sx = sin(x); 38 *cx = cos(x); 39 } 40 41 #endif 42 43 #endif