vx32

Local 9vx git repository for patches.
git clone git://r-36.net/vx32
Log | Files | Refs

sincosf.c (289B)


      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 float sinf(float x);
      6 extern float cosf(float x);
      7 void
      8 sincosf(float x, float *s, float *c)
      9 {
     10 	*s = sinf(x);
     11 	*c = cosf(x);
     12 }