ref: 8b59286ef1d9bef6c2c7b248ab0b8072e25ec9cf 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