ref: 3bd5ff9583c4b33aa27754fb4c3b6792261feb8a dir: /sys/src/ape/lib/ap/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