diff options
author | Matt Turner <mattst88@gmail.com> | 2011-09-04 14:11:46 -0400 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2011-09-27 13:13:07 -0400 |
commit | f66887d9eae9646c838d518020168b1403705b1e (patch) | |
tree | 3813722f21366f4a79968802af8c7eb2198ccd52 | |
parent | 7c6d5d1999989187b60f1e0e82e55ed55238eb27 (diff) |
mmx: prepare pixman-mmx.c to be compiled for ARM/iwmmxt
Signed-off-by: Matt Turner <mattst88@gmail.com>
-rw-r--r-- | pixman/pixman-mmx.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/pixman/pixman-mmx.c b/pixman/pixman-mmx.c index 0317b9a..801ae32 100644 --- a/pixman/pixman-mmx.c +++ b/pixman/pixman-mmx.c @@ -33,7 +33,7 @@ #include <config.h> #endif -#ifdef USE_X86_MMX +#if defined USE_X86_MMX || defined USE_ARM_IWMMXT #include <mmintrin.h> #include "pixman-private.h" @@ -47,6 +47,15 @@ #define CHECKPOINT() #endif +#ifdef USE_ARM_IWMMXT +/* Empty the multimedia state. For some reason, ARM's mmintrin.h doesn't provide this. */ +extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) +_mm_empty (void) +{ + +} +#endif + /* Notes about writing mmx code * * give memory operands as the second operand. If you give it as the @@ -3218,4 +3227,4 @@ _pixman_implementation_create_mmx (pixman_implementation_t *fallback) return imp; } -#endif /* USE_X86_MMX */ +#endif /* USE_X86_MMX || USE_ARM_IWMMXT */ |