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 --- templates/log2.s.html | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 templates/log2.s.html (limited to 'templates/log2.s.html') diff --git a/templates/log2.s.html b/templates/log2.s.html new file mode 100644 index 0000000..a16ccca --- /dev/null +++ b/templates/log2.s.html @@ -0,0 +1,11 @@ +
    .section    .text
+    .global     log2lzcnt
+    .type       log2lzcnt, @function
+# {{template "source_code.html" .}}
+# {{template "reset.html" .}}
+log2lzcnt:              # log2lzcnt({{.Requests}});
+    lzcnt   %rdi, %rdi 
+    movq    $63,  %rax
+    sub     %rdi, %rax
+    ret                 # 2^{{.Log2lzcnt}} requests handled
+
\ No newline at end of file -- cgit v1.2.3