sincostest.c
bobblestiltskin_professional_assembly_language/x86/chap13/sincostest.c
/* sincostest.c - An example of using two FPU registers */
#include <stdio.h>

int main()
{
   float angle = 90;
   float radian, cosine, sine;

   radian = angle / 180 * 3.14159;

   asm("fsincos"
       :"=t"(cosine), "=u"(sine)
       :"0"(radian));

   printf("The cosine is %f, and the sine is %f\n", cosine, sine);
   return 0;
}
