Commit e6e7d712 authored by Alexei Fedorov's avatar Alexei Fedorov
Browse files

TF-A Aarch32: optimise memcpy4()



This patch makes optimisation of Aarch32 memcpy4()
function.

Change-Id: If9cdaa4a1224f88fb14df8a308a645344b6c4f1c
Signed-off-by: default avatarAlexei Fedorov <Alexei.Fedorov@arm.com>
parent d95c3de3
/* /*
* Copyright (c) 2016-2019, ARM Limited and Contributors. All rights reserved. * Copyright (c) 2016-2020, ARM Limited and Contributors. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
...@@ -149,17 +149,16 @@ m_loop4: ...@@ -149,17 +149,16 @@ m_loop4:
blo m_loop1 blo m_loop1
ldr r3, [r1], #4 ldr r3, [r1], #4
str r3, [r0], #4 str r3, [r0], #4
sub r2, r2, #4 subs r2, r2, #4
b m_loop4 bne m_loop4
bx lr
/* copy byte per byte */ /* copy byte per byte */
m_loop1: m_loop1:
cmp r2,#0
beq m_end
ldrb r3, [r1], #1 ldrb r3, [r1], #1
strb r3, [r0], #1 strb r3, [r0], #1
subs r2, r2, #1 subs r2, r2, #1
bne m_loop1 bne m_loop1
m_end:
bx lr bx lr
endfunc memcpy4 endfunc memcpy4
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment