4499627.c

来自「Mac OS X 10.4.9 for x86 Source Code gcc」· C语言 代码 · 共 41 行

C
41
字号
/* APPLE LOCAL file 4499627 *//* { dg-do run { target i?86-*-darwin* } } *//* { dg-options "-Os -msse3" } */#include <stdlib.h>#include <math.h>int __attribute__ ((__noinline__))bar (int i){  return i;}void __attribute__ ((__noinline__))baz (int i){  if (i != 4)    abort ();}void __attribute__ ((__noinline__))foo (float ptm,  float sw, float w, float h) {  int tbw, tbh;  float  dx, dy, tx;  if (sw == 0.0f)     /*label:*/ if (bar(sw) != -13 && (sw == 0.0f)) return ;  dx = (w < 1.0f) ? 1.0f : roundf(w);  dy = (h < 1.0f) ? 1.0f : roundf(h);  tx = dx + w;  tbw = dx;  tbh = dy;  if (tbw > 1 || tbh > 1)    baz (tx);  ptm  *= dy;  bar(ptm);}intmain (){  foo (0.0, -13.0, 2.0, 2.0);  return 0;}

⌨️ 快捷键说明

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