sincos.c (291B)
1 // written by russ cox rsc@swtch.com 2008/12/07. 2 // gcc 4.3.2 collapses calls to sin and cos with same arg 3 // to a single call to sincos when compiling -O2 4 5 extern double sin(double x); 6 extern double cos(double x); 7 void 8 sincos(double x, double *s, double *c) 9 { 10 *s = sin(x); 11 *c = cos(x); 12 }