Browse Source

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

legacy
Sam Hocevar sam 13 years ago
parent
commit
b3e2429b9e
2 changed files with 1 additions and 10 deletions
  1. +1
    -1
      src/core.h
  2. +0
    -9
      src/trig.cpp

+ 1
- 1
src/core.h View File

@@ -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 View File

@@ -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;


Loading…
Cancel
Save