[Pixman] [PATCH 10/11] MIPS: disabled non 32-bit platforms

Nemanja Lukic nemanja.lukic at rt-rk.com
Thu Mar 13 06:13:22 PDT 2014


This patch add mechanism which allows optimizations to be run only
on 32-bit platforms.
---
 pixman/pixman-mips.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/pixman/pixman-mips.c b/pixman/pixman-mips.c
index 221da24..8825621 100644
--- a/pixman/pixman-mips.c
+++ b/pixman/pixman-mips.c
@@ -140,6 +140,10 @@ _pixman_mips_get_implementations (pixman_implementation_t *imp)
         imp = _pixman_implementation_create_mmx (imp);
 #endif
 
+    /* disable runtime detection for non 32-bit platforms */
+    if (sizeof (uintptr_t) != 4)
+        return imp;
+
 #ifdef USE_MIPS32R2
     if (!_pixman_disabled ("mips32r2"))
     {
-- 
1.7.3



More information about the Pixman mailing list