summaryrefslogtreecommitdiff
path: root/mbld/cpufeatures+posixy-x64.s
blob: 889c6f186cac7aa36c033a775315c256e1ea7f18 (plain)
1
2
3
4
5
6
7
8
9
10
.globl bld$cpufeatures
.globl _bld$cpufeatures
bld$cpufeatures:
_bld$cpufeatures:
	mov	$0x1, %eax
	cpuid
	mov	%ecx, %eax
	rol	$32, %rax
	shrd	$32, %rdx, %rax
	ret