Browse Source

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

legacy
Sam Hocevar sam 13 years ago
parent
commit
e9296e7994
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      src/core.h

+ 7
- 1
src/core.h View File

@@ -29,7 +29,13 @@
# define __likely(x) __builtin_expect(!!(x), 1)
# define __unlikely(x) __builtin_expect(!!(x), 0)
# define INLINEATTR __attribute__((always_inline))
# define FP_USE(x) __asm__("" : "+r" (x))
# if defined __CELLOS_LV2__
# define FP_USE(x) __asm__("" : "+f" (x))
# elif defined __x86_64__
# define FP_USE(x) __asm__("" : "+x" (x))
# elif defined __i386__
# define FP_USE(x) __asm__("" : "+t" (x))
# endif
#else
# define __likely(x) x
# define __unlikely(x) x


Loading…
Cancel
Save