~ft/hj264

hj264/builtins.amd64.s -rw-r--r-- 268 bytes
70b1cf8aSigrid Solveig Haflínudóttir give up on weird shit 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
TEXT memcpyf(SB),1,$0
	MOVQ RARG, DI
	MOVQ DI, AX
	MOVQ p2+8(FP), SI
	MOVL n+16(FP), CX
	CLD; REP; MOVSB
	RET
	
TEXT __builtin_clz(SB),1,$0
	BSRL RARG, AX
	XORL $31, AX
	RET

TEXT __builtin_bswap32(SB),1,$0
	MOVL RARG, AX
	BYTE $0x0F; BYTE $0xC8 /* BSWAP32 AX */
	RET