diff options
author | Jens Arnold <amiconn@rockbox.org> | 2009-07-17 09:17:54 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2009-07-17 09:17:54 +0000 |
commit | 82dc91a1028b702151e5735fb383356028d7bbae (patch) | |
tree | 2fa2d7a053c9d064b0531652954e4a9acae531ec /apps/codecs/demac | |
parent | 867eb5feb3d8aaa92cdd647018a4e3ea49bec975 (diff) |
Don't use ldrd/strd on ARMv5 since not all revisions support them and the gain from using them is minimal (basically code size only).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21916 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/demac')
-rw-r--r-- | apps/codecs/demac/libdemac/predictor-arm.S | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/codecs/demac/libdemac/predictor-arm.S b/apps/codecs/demac/libdemac/predictor-arm.S index f1d3bc3739..28808c8e96 100644 --- a/apps/codecs/demac/libdemac/predictor-arm.S +++ b/apps/codecs/demac/libdemac/predictor-arm.S @@ -61,13 +61,13 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA @ Registers must start with an even register, and must be consecutive. .macro LDR2OFS reg1, reg2, base, offset -#if ARM_ARCH >= 5 +#if ARM_ARCH >= 6 ldrd \reg1, [\base, \offset] -#else /* ARM_ARCH < 5 */ +#else /* ARM_ARCH < 6 */ #ifdef CPU_ARM7TDMI add \reg1, \base, \offset ldmia \reg1, {\reg1, \reg2} -#else +#else /* ARM9 (v4 and v5) is faster this way */ ldr \reg1, [\base, \offset] ldr \reg2, [\base, \offset+4] #endif @@ -78,7 +78,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA @ Registers must start with an even register, and must be consecutive. .macro STR2OFS reg1, reg2, base, offset -#if ARM_ARCH >= 5 +#if ARM_ARCH >= 6 strd \reg1, [\base, \offset] #else str \reg1, [\base, \offset] |