ref: 855cf4326f5a07d7142c2d8918f5fa856d912b85 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