From b3e2429b9ebcffcdf1281f4cb6d87fdfc6548fc1 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Tue, 6 Sep 2011 06:43:06 +0000 Subject: [PATCH] core: avoid returning to memory when giving GCC floating point hints. --- src/core.h | 2 +- src/trig.cpp | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/core.h b/src/core.h index cc4bd49e..9affb7e0 100644 --- a/src/core.h +++ b/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 diff --git a/src/trig.cpp b/src/trig.cpp index a6b90cf4..e88604be 100644 --- a/src/trig.cpp +++ b/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;