pass: de-prioritize base pointer in register allocation (#184)
Updates #156
This commit is contained in:
committed by
GitHub
parent
f295bde84c
commit
c32f24fb1e
@@ -3,18 +3,18 @@
|
||||
#include "textflag.h"
|
||||
|
||||
// func Hash64(data []byte) uint64
|
||||
TEXT ·Hash64(SB), NOSPLIT, $8-32
|
||||
TEXT ·Hash64(SB), NOSPLIT, $0-32
|
||||
MOVQ data_base+0(FP), CX
|
||||
MOVQ data_len+8(FP), BX
|
||||
MOVQ $0xcbf29ce484222325, AX
|
||||
MOVQ $0x00000100000001b3, BP
|
||||
MOVQ $0x00000100000001b3, SI
|
||||
|
||||
loop:
|
||||
CMPQ BX, $0x00
|
||||
JE done
|
||||
MOVBQZX (CX), DX
|
||||
XORQ DX, AX
|
||||
MULQ BP
|
||||
MULQ SI
|
||||
INCQ CX
|
||||
DECQ BX
|
||||
JMP loop
|
||||
|
||||
Reference in New Issue
Block a user