[Cogl] [PATCH 2/3] Fix the check for whether to use inline ARM assembler

Neil Roberts neil at linux.intel.com
Wed Jul 3 09:51:54 PDT 2013


Commit 839cf49763cfe28 changed the inline ARM assembler so that it
won't be used when targetting the Thumb instruction set. I manually
applied the patch but I messed up the #if so it was generating a
warning.
---
 cogl/cogl-fixed.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cogl/cogl-fixed.c b/cogl/cogl-fixed.c
index 5dc74f8..a144d84 100644
--- a/cogl/cogl-fixed.c
+++ b/cogl/cogl-fixed.c
@@ -807,7 +807,7 @@ CoglFixed
 cogl_fixed_mul (CoglFixed a,
                 CoglFixed b)
 {
-#ifdef __arm__ && !defined(__thumb__)
+#if defined(__arm__) && !defined(__thumb__)
   /* This provides about 12% speedeup on the gcc -O2 optimised
    * C version
    *
-- 
1.7.11.3.g3c3efa5



More information about the Cogl mailing list