소스 검색

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;


불러오는 중...
취소
저장