浏览代码

core: implement the FP_USE() macro on x86, amd64 and powerpc.

legacy
Sam Hocevar sam 13 年前
父节点
当前提交
e9296e7994
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. +7
    -1
      src/core.h

+ 7
- 1
src/core.h 查看文件

@@ -29,7 +29,13 @@
# define __likely(x) __builtin_expect(!!(x), 1)
# define __unlikely(x) __builtin_expect(!!(x), 0)
# define INLINEATTR __attribute__((always_inline))
# define FP_USE(x) __asm__("" : "+r" (x))
# if defined __CELLOS_LV2__
# define FP_USE(x) __asm__("" : "+f" (x))
# elif defined __x86_64__
# define FP_USE(x) __asm__("" : "+x" (x))
# elif defined __i386__
# define FP_USE(x) __asm__("" : "+t" (x))
# endif
#else
# define __likely(x) x
# define __unlikely(x) x


正在加载...
取消
保存