floatunsisf-1.c
来自「用于进行gcc测试」· C语言 代码 · 共 22 行
C
22 行
/* The fp-bit.c function __floatunsisf had a latent bug where guard bits could be lost leading to incorrect rounding. *//* Origin: Joseph Myers <joseph@codesourcery.com> */extern void abort (void);extern void exit (int);#if __INT_MAX__ >= 0x7fffffffvolatile unsigned u = 0x80000081;#elsevolatile unsigned long u = 0x80000081;#endifvolatile float f1, f2;intmain (void){ f1 = (float) u; f2 = (float) 0x80000081; if (f1 != f2) abort (); exit (0);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?