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

« back to all changes in this revision

Viewing changes to reference/glibc/strlen.S

  • Committer: Michael Hope
  • Date: 2012-06-12 03:20:30 UTC
  • Revision ID: michael.hope@linaro.org-20120612032030-5ceelkcw4zi300y4
Updated the GLIBC routines and shifted the C only routines out.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 * entry: r0 -> string
22
22
 * exit: r0 = len
23
23
 */
24
 
 
 
24
        .globl strlen
 
25
        
25
26
strlen: 
26
27
        bic     r1, r0, $3              @ addr of word containing first byte
27
28
        ldr     r2, [r1], $4            @ get the first word