diff options
author | 2012-01-09 14:38:25 +0000 | |
---|---|---|
committer | 2012-01-09 14:38:25 +0000 | |
commit | a44e6c6b5310be3b4724746b4fdca54c5233f41b (patch) | |
tree | 0bb1e4149a78f730abbb271be19112e8004a7eb7 /src/opts/memset.arm.S | |
parent | e8c984d11ac2717b3d6c7ac132c6b47f67703f3d (diff) |
Add ARM optimizations to the build.
Also had to fix a problem in the ARM memset code that was
causing some tests and bench to fail.
Review URL: http://codereview.appspot.com/5522052
git-svn-id: http://skia.googlecode.com/svn/trunk@2989 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/opts/memset.arm.S')
-rw-r--r-- | src/opts/memset.arm.S | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/opts/memset.arm.S b/src/opts/memset.arm.S index 7732174881..bc0c060ac9 100644 --- a/src/opts/memset.arm.S +++ b/src/opts/memset.arm.S @@ -32,6 +32,10 @@ arm_memset16: .fnstart push {lr} + /* Multiply count by 2 - go from the number of 16-bit shorts + * to the number of bytes desired. */ + mov r2, r2, lsl #1 + /* expand the data to 32 bits */ orr r1, r1, lsl #16 @@ -40,10 +44,6 @@ arm_memset16: strneh r1, [r0], #2 subne r2, r2, #2 - /* Multiply count by 2 - go from the number of 16-bit shorts - * to the number of bytes desired. */ - mov r2, r2, lsl #1 - /* Now jump into the main loop below. */ b .Lwork_32 .fnend |