ref: 70a9df6c59a5e9d6e54a9858235b16b753b860bd dir: /sys/src/libc/amd64/strlen.s/
TEXT strlen(SB),$0 MOVL $0, AX MOVQ $-1, CX CLD /* * look for end of string */ MOVQ RARG, DI REPN; SCASB MOVQ DI, AX SUBQ RARG, AX SUBQ $1, AX RET