Changeset 908


Ignore:
Timestamp:
Sep 6, 2011, 8:43:06 AM (8 years ago)
Author:
sam
Message:

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

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core.h

    r905 r908  
    3030#   define __unlikely(x) __builtin_expect(!!(x), 0)
    3131#   define INLINEATTR __attribute__((always_inline))
    32 #   define FP_USE(x) __asm__("" : "+m" (x))
     32#   define FP_USE(x) __asm__("" : "+r" (x))
    3333#else
    3434#   define __likely(x)   x
  • trunk/src/trig.cpp

    r905 r908  
    9494};
    9595
    96 /* Custom intrinsics */
    97 #if defined __GNUC__
    98 #   define INLINEATTR __attribute__((always_inline))
    99 #   define FP_USE(x) __asm__("" : "+m" (x))
    100 #else
    101 #   define INLINEATTR
    102 #   define FP_USE(x) (void)(x)
    103 #endif
    104 
    10596#if defined __CELLOS_LV2__
    10697static inline double lol_fctid(double x) INLINEATTR;
Note: See TracChangeset for help on using the changeset viewer.