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

« back to all changes in this revision

Viewing changes to src/reference/glibc/memset.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:
17
17
   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18
18
   02111-1307 USA.  */
19
19
 
20
 
#include <sysdep.h>
21
 
 
22
20
/* void *memset (dstpp, c, len) */
23
21
 
24
 
ENTRY(memset)
 
22
memset: 
25
23
        mov     r3, r0
26
24
        cmp     r2, #8
27
25
        bcc     2f              @ less than 8 bytes to move
60
58
        strcsb  r1, [r3], #1
61
59
        bcs     2b
62
60
        
63
 
        DO_RET(lr)
64
 
END(memset)
65
 
libc_hidden_builtin_def (memset)
 
61
        bx      lr