From 342b251a2f24263651a4a4104ab8129560d7dd53 Mon Sep 17 00:00:00 2001 From: hovertank3d Date: Sat, 18 Jan 2025 13:57:23 +0100 Subject: use genhl instead of hardcoding syntax --- log2.s | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'log2.s') diff --git a/log2.s b/log2.s index 63499e6..910f6c7 100644 --- a/log2.s +++ b/log2.s @@ -1,8 +1,10 @@ .section .text .global log2lzcnt .type log2lzcnt, @function -log2lzcnt: - lzcnt %rdi, %rdi +# {{template "source_code.html" .}} +# {{template "reset.html" .}} +log2lzcnt: # log2lzcnt({{.Requests}}); + lzcnt %rdi, %rdi movq $63, %rax sub %rdi, %rax - ret + ret # 2^{{.Log2lzcnt}} requests handled -- cgit v1.2.3