shithub: hj264

Download patch

ref: c3333e66aa6e6d122e79cccd9d6f5d81cca51ec0
parent: cb5dc8c2b2901b59544255959b5bc8867bfc4ff9
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Tue Jul 20 06:11:43 EDT 2021

builtins/amd64: sync clz, use MOVL in bswap32

--- a/builtins.amd64.s
+++ b/builtins.amd64.s
@@ -7,11 +7,11 @@
 	RET
 	
 TEXT __builtin_clz(SB),1,$0
-	BYTE $0x0F; BYTE $0xBD; BYTE $0xC5 /* BSRL RARG, AX */
+	BSRL RARG, AX
 	XORL $31, AX
 	RET
 
 TEXT __builtin_bswap32(SB),1,$0
-	MOVQ RARG, AX
+	MOVL RARG, AX
 	BYTE $0x0F; BYTE $0xC8 /* BSWAP32 AX */
 	RET