summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/cogl/files/cogl-fixed-thumb.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/cogl/files/cogl-fixed-thumb.patch')
-rw-r--r--meta/recipes-graphics/cogl/files/cogl-fixed-thumb.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-graphics/cogl/files/cogl-fixed-thumb.patch b/meta/recipes-graphics/cogl/files/cogl-fixed-thumb.patch
new file mode 100644
index 0000000000..1825e88f1d
--- /dev/null
+++ b/meta/recipes-graphics/cogl/files/cogl-fixed-thumb.patch
@@ -0,0 +1,30 @@
1Upstream-Status: Backport
2
3There are two asm() statements in cogl-fixed.c that can't be assembled
4in Thumb mode. Add a patch to switch to the generic code in Thumb mode.
5
6Signed-off-by: Donn Seeley <donn.seeley@windriver.com>
7---
8 cogl/cogl-fixed.c | 4 ++--
9 1 file changed, 2 insertions(+), 2 deletions(-)
10
11--- a/cogl/cogl-fixed.c
12+++ b/cogl/cogl-fixed.c
13@@ -626,7 +626,7 @@ cogl_fixed_sqrt (CoglFixed x)
14 /*
15 * Find the highest bit set
16 */
17-#if defined (__arm__) && !defined(__ARM_ARCH_4T__)
18+#if defined (__arm__) && !defined(__ARM_ARCH_4T__) && !defined(__thumb__)
19 /* This actually requires at least arm v5, but gcc does not seem
20 * to set the architecture defines correctly, and it is I think
21 * very unlikely that anyone will want to use clutter on anything
22@@ -804,7 +804,7 @@ CoglFixed
23 cogl_fixed_mul (CoglFixed a,
24 CoglFixed b)
25 {
26-#ifdef __arm__
27+#if defined(__arm__) && !defined(__thumb__)
28 /* This provides about 12% speedeup on the gcc -O2 optimised
29 * C version
30 *