shithub: bench9

ref: 066c7e81fb7dc81494f90831b437e646de095853
dir: /b_amd64.s/

View raw version
TEXT _tstart(SB), 1, $0
	LFENCE
	RDTSC
	MOVL AX, 0(RARG)
	MOVL DX, 4(RARG)
	RET

TEXT _tend(SB), 1, $0
	RDTSC
	MOVL AX, 0(RARG)
	MOVL DX, 4(RARG)
	CPUID
	RET