summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qdrawhelper.cpp
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2009-04-29 12:06:10 (GMT)
committerMiikka Heikkinen <miikka.heikkinen@digia.com>2009-04-29 12:06:10 (GMT)
commite267231ecdd4f1614da62f620f82b19e1157b0b8 (patch)
treeee60811b6eaab29ed50cd785e62452b29f6f1ff6 /src/gui/painting/qdrawhelper.cpp
parent22fcb9580a6e2a183489c35eeafb6b32fcde96ea (diff)
downloadQt-e267231ecdd4f1614da62f620f82b19e1157b0b8.zip
Qt-e267231ecdd4f1614da62f620f82b19e1157b0b8.tar.gz
Qt-e267231ecdd4f1614da62f620f82b19e1157b0b8.tar.bz2
Basic optimizations to qdrawhelper for RVCT builds:
- Force static inline methods to be actually inline - Force ARM code for strategic methods RevBy: axis
Diffstat (limited to 'src/gui/painting/qdrawhelper.cpp')
-rw-r--r--src/gui/painting/qdrawhelper.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gui/painting/qdrawhelper.cpp b/src/gui/painting/qdrawhelper.cpp
index c11837a..b8babd7 100644
--- a/src/gui/painting/qdrawhelper.cpp
+++ b/src/gui/painting/qdrawhelper.cpp
@@ -1499,6 +1499,12 @@ static const uint * QT_FASTCALL fetchConicalGradient(uint *buffer, const Operato
+#if defined(Q_CC_RVCT)
+// Force ARM code generation for blend methods
+# pragma push
+# pragma arm
+#endif
+
/* The constant alpha factor describes an alpha factor that gets applied
to the result of the composition operation combining it with the destination.
@@ -2757,6 +2763,11 @@ static void QT_FASTCALL comp_func_Exclusion(uint *dest, const uint *src, int len
comp_func_Exclusion_impl(dest, src, length, QPartialCoverage(const_alpha));
}
+#if defined(Q_CC_RVCT)
+// Restore pragma state from previous #pragma arm
+# pragma pop
+#endif
+
static void QT_FASTCALL rasterop_solid_SourceOrDestination(uint *dest,
int length,
uint color,