MOVQ $0, CX // c = 0
MOVQ $0, SI // i = 0
- // uncomment the next line to disable the unrolled loop
- // JMP V1
-
+ // s/JL/JMP/ below to disable the unrolled loop
SUBQ $4, DI // n -= 4
JL V1 // if n < 0 goto V1
MOVQ $0, CX // c = 0
MOVQ $0, SI // i = 0
- // uncomment the next line to disable the unrolled loop
- // JMP V2
-
+ // s/JL/JMP/ below to disable the unrolled loop
SUBQ $4, DI // n -= 4
JL V2 // if n < 0 goto V2
MOVQ $0, SI // i = 0
- // uncomment the next line to disable the unrolled loop
- // JMP V3
-
+ // s/JL/JMP/ below to disable the unrolled loop
SUBQ $4, DI // n -= 4
JL V3 // if n < 4 goto V3
MOVQ $0, SI // i = 0
- // uncomment the next line to disable the unrolled loop
- // JMP V4
-
+ // s/JL/JMP/ below to disable the unrolled loop
SUBQ $4, DI // n -= 4
JL V4 // if n < 4 goto V4
TEXT ·bitLen(SB),7,$0
BSRQ x+0(FP), AX
JZ Z1
- INCL AX
+ ADDL $1, AX
MOVL AX, n+8(FP)
RET