Home | History | Annotate | Download | only in Arm
      1 #------------------------------------------------------------------------------
      2 #
      3 # Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
      4 #
      5 # This program and the accompanying materials
      6 # are licensed and made available under the terms and conditions of the BSD License
      7 # which accompanies this distribution.  The full text of the license may be found at
      8 # http://opensource.org/licenses/bsd-license.php
      9 #
     10 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
     11 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     12 #
     13 #------------------------------------------------------------------------------
     14 
     15   .text
     16   .align 2
     17   GCC_ASM_EXPORT(__aeabi_memcpy)
     18   GCC_ASM_EXPORT(memcpy)
     19 
     20 ASM_PFX(__aeabi_memcpy):
     21 ASM_PFX(memcpy):
     22   cmp     r2, #0
     23   bxeq    lr
     24   push    {lr}
     25   mov     lr, r0
     26 L5:
     27   ldrb  r3, [r1], #1  @ zero_extendqisi2
     28   strb  r3, [lr], #1
     29   subs r2, r2, #1
     30   bne  L5
     31   pop  {pc}
     32 
     33