Changeset 909


Ignore:
Timestamp:
Sep 7, 2011, 7:16:15 PM (8 years ago)
Author:
sam
Message:

core: implement the FP_USE() macro on x86, amd64 and powerpc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core.h

    r908 r909  
    3030#   define __unlikely(x) __builtin_expect(!!(x), 0)
    3131#   define INLINEATTR __attribute__((always_inline))
    32 #   define FP_USE(x) __asm__("" : "+r" (x))
     32#   if defined __CELLOS_LV2__
     33#      define FP_USE(x) __asm__("" : "+f" (x))
     34#   elif defined __x86_64__
     35#      define FP_USE(x) __asm__("" : "+x" (x))
     36#   elif defined __i386__
     37#      define FP_USE(x) __asm__("" : "+t" (x))
     38#   endif
    3339#else
    3440#   define __likely(x)   x
Note: See TracChangeset for help on using the changeset viewer.