summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Ferris2014-06-20 12:28:28 -0500
committerChristopher Ferris2014-06-23 21:28:33 -0500
commitd660d895c1401fa96d65a397d0667664bca60b58 (patch)
tree5bc3b7908a9e76ac98676325639aeb12e7182eeb /libcutils/arch-arm
parent7950fc47a76cf7fe2d5c5e1a25002cb7848cf155 (diff)
downloadplatform-system-core-d660d895c1401fa96d65a397d0667664bca60b58.tar.gz
platform-system-core-d660d895c1401fa96d65a397d0667664bca60b58.tar.xz
platform-system-core-d660d895c1401fa96d65a397d0667664bca60b58.zip
Add android_memset16/android_memset32 for aarch64.
Included new unit tests for these functions. Bug: 15456369 Change-Id: I3fac02f61c62d15d54d0df51957680d7155e98ae
Diffstat (limited to 'libcutils/arch-arm')
-rw-r--r--libcutils/arch-arm/memset32.S7
1 files changed, 6 insertions, 1 deletions
diff --git a/libcutils/arch-arm/memset32.S b/libcutils/arch-arm/memset32.S
index 469726563..6efab9f93 100644
--- a/libcutils/arch-arm/memset32.S
+++ b/libcutils/arch-arm/memset32.S
@@ -51,8 +51,10 @@ android_memset16:
51 51
52android_memset32: 52android_memset32:
53 .fnstart 53 .fnstart
54 .save {lr} 54 .cfi_startproc
55 str lr, [sp, #-4]! 55 str lr, [sp, #-4]!
56 .cfi_def_cfa_offset 4
57 .cfi_rel_offset lr, 0
56 58
57 /* align the destination to a cache-line */ 59 /* align the destination to a cache-line */
58 mov r12, r1 60 mov r12, r1
@@ -89,5 +91,8 @@ android_memset32:
89 strmih lr, [r0], #2 91 strmih lr, [r0], #2
90 92
91 ldr lr, [sp], #4 93 ldr lr, [sp], #4
94 .cfi_def_cfa_offset 0
95 .cfi_restore lr
92 bx lr 96 bx lr
97 .cfi_endproc
93 .fnend 98 .fnend