i386-387-1.c

来自「this is a gcc file, you can download it 」· C语言 代码 · 共 11 行

C
11
字号
/* Verify that -mno-fancy-math-387 works.  *//* { dg-do compile { target "i?86-*-*" } } *//* { dg-options "-O -ffast-math -mfpmath=387 -mno-fancy-math-387" } *//* { dg-final { scan-assembler "call\t_?sin" } } *//* { dg-final { scan-assembler "call\t_?cos" } } *//* { dg-final { scan-assembler "call\t_?sqrt" } } */double f1(double x) { return __builtin_sin(x); }double f2(double x) { return __builtin_cos(x); }double f3(double x) { return __builtin_sqrt(x); }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?