Преглед на файлове

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

legacy
Sam Hocevar sam преди 14 години
родител
ревизия
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;


Зареждане…
Отказ
Запис