~linaro-toolchain-dev/cortex-strings/trunk

« back to all changes in this revision

Viewing changes to src/reference/glibc/memmove.S

  • Committer: Michael Hope
  • Date: 2010-08-30 23:30:25 UTC
  • Revision ID: michael.hope@linaro.org-20100830233025-2f14wknqev6ryj01
Modified the imported versions to build locally.  Added the CSL routines.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
19
19
   02111-1307 USA.  */
20
20
 
21
 
#include <sysdep.h>
22
 
 
23
21
/*
24
22
 * Data preload for architectures that support it (ARM V5TE and above)
25
23
 */
62
60
 * normally a bit faster. Otherwise the copy is done going downwards.
63
61
 */
64
62
 
65
 
ENTRY(memmove)
66
 
 
 
63
memmove:
67
64
                subs    ip, r0, r1
68
65
                cmphi   r2, ip
69
 
#ifdef NOT_IN_libc
70
66
                bls     memcpy
71
 
#else
72
 
                bls     HIDDEN_JUMPTARGET(memcpy)
73
 
#endif
74
67
 
75
68
                stmfd   sp!, {r0, r4, lr}
76
69
                add     r1, r1, r2
240
233
17:             backward_copy_shift     push=16 pull=16
241
234
 
242
235
18:             backward_copy_shift     push=24 pull=8
243
 
 
244
 
 
245
 
END(memmove)
246
 
libc_hidden_builtin_def (memmove)