From 2aa29060c81fb52884b290603f1cf930259443b9 Mon Sep 17 00:00:00 2001 From: hovertank3d Date: Sat, 18 Jan 2025 18:01:10 +0100 Subject: update genhl --- deps/genhl | 2 +- templates/gen.go | 2 +- templates/log2.s.html | 22 +++++++++++----------- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/deps/genhl b/deps/genhl index fc70e3f..1b8f551 160000 --- a/deps/genhl +++ b/deps/genhl @@ -1 +1 @@ -Subproject commit fc70e3ffc28dbfb3939b9e5a98272616ea7bee05 +Subproject commit 1b8f55116ac8c2c7082a7a36af934573b0251b3a diff --git a/templates/gen.go b/templates/gen.go index 6385f08..dbbaf24 100644 --- a/templates/gen.go +++ b/templates/gen.go @@ -1,3 +1,3 @@ package templates -//go:generate bash -c "cat ../log2.s | ../deps/genhl/genhl > log2.s.html" +//go:generate bash -c "cat ../log2.s | ../deps/genhl/genhl asmatt > log2.s.html" diff --git a/templates/log2.s.html b/templates/log2.s.html index a16ccca..f2fb03b 100644 --- a/templates/log2.s.html +++ b/templates/log2.s.html @@ -1,11 +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 +
    .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