ref: e51c4bc6e493a9cd0d9e9d7f1d24c57ae77bab65 dir: /sys/src/libc/386/strlen.s/
TEXT strlen(SB),$0 MOVL $0, AX MOVL $-1, CX CLD /* * look for end of string */ MOVL p+0(FP), DI REPN; SCASB MOVL DI, AX SUBL p+0(FP), AX SUBL $1, AX RET