我正在尝试编写一个简单的函数来在我的 beagleboard 上使用 VFP。但是,我收到以下错误:在 ´:´ 标记之前预期 ´)´。这是代码:
float floatmod(float a, float b) {
float result;
__asm__volatile__(
"VMOV.F32 s7, %p[a]"
"VMOV.F32 s8, %p[b]"
"VDIV.F32 s9, s7, s8"
"VMLS.F32 s7, s8, s9"
:s7 "=t" (c)
:[a] "t" (a), [b] "t" (b)
:"s7", "s8", "s9"
);
return c;
}
我对内联汇编相当陌生,所以我可能犯了一些错误