浏览代码

core: avoid returning to memory when giving GCC floating point hints.

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

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

@@ -29,7 +29,7 @@
# define __likely(x) __builtin_expect(!!(x), 1)
# define __unlikely(x) __builtin_expect(!!(x), 0)
# define INLINEATTR __attribute__((always_inline))
# define FP_USE(x) __asm__("" : "+m" (x))
# define FP_USE(x) __asm__("" : "+r" (x))
#else
# define __likely(x) x
# define __unlikely(x) x


+ 0
- 9
src/trig.cpp 查看文件

@@ -93,15 +93,6 @@ static const double TC[] =
2.373e5,
};

/* Custom intrinsics */
#if defined __GNUC__
# define INLINEATTR __attribute__((always_inline))
# define FP_USE(x) __asm__("" : "+m" (x))
#else
# define INLINEATTR
# define FP_USE(x) (void)(x)
#endif

#if defined __CELLOS_LV2__
static inline double lol_fctid(double x) INLINEATTR;
static inline double lol_fctidz(double x) INLINEATTR;


正在加载...
取消
保存