Files
avo/examples/fnv1a/fnv1a.s
2021-04-18 19:22:09 -07:00

25 lines
447 B
ArmAsm

// Code generated by command: go run asm.go -out fnv1a.s -stubs stub.go. DO NOT EDIT.
#include "textflag.h"
// func Hash64(data []byte) uint64
TEXT ·Hash64(SB), NOSPLIT, $0-32
MOVQ data_base+0(FP), CX
MOVQ data_len+8(FP), BX
MOVQ $0xcbf29ce484222325, AX
MOVQ $0x00000100000001b3, SI
loop:
CMPQ BX, $0x00
JE done
MOVBQZX (CX), DX
XORQ DX, AX
MULQ SI
INCQ CX
DECQ BX
JMP loop
done:
MOVQ AX, ret+24(FP)
RET