asm-block-52.c
来自「Mac OS X 10.4.9 for x86 Source Code gcc」· C语言 代码 · 共 42 行
C
42 行
/* APPLE LOCAL file CW asm blocks *//* { dg-do assemble { target i?86*-*-darwin* } } *//* { dg-options { -fasm-blocks -O } } *//* Radar 4527214 */inline int foo(int x, int y) { int result; __asm { MOV EAX, x IMUL y MOV result, EDX } return result;}inline int bar(int mhigh) { int temp = foo(mhigh, 3); return temp;}typedef struct S { long a; int c;} S;void bee(S *fill) { int a, top = 2; int b = 1; int i = 0; int c = fill->c; int bottom = 30; if (b < top) i = (fill->a - b) / c; while (i < bottom - top) { bar(a); bar(a); i++; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?