Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <math.h>
- #include <stdio.h>
- double x87_sin (double x)
- {
- double sinval;
- asm ("fsin" : "=t" (sinval) : "0" (x));
- return sinval;
- }
- int main(void)
- {
- double x = 45.0*M_PI/180.0;
- printf ("%f\n", x87_sin(x));
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement