From 588cedf699de1eda2c476133193cc2bb1e9d5dbc Mon Sep 17 00:00:00 2001 From: hovertank3d Date: Sat, 24 May 2025 10:58:06 +0000 Subject: update about and link to the source code --- templates/about.go.html | 16 ++++++++++++++++ templates/log2.s.html | 14 ++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 templates/about.go.html create mode 100644 templates/log2.s.html (limited to 'templates') diff --git a/templates/about.go.html b/templates/about.go.html new file mode 100644 index 0000000..ebd212f --- /dev/null +++ b/templates/about.go.html @@ -0,0 +1,16 @@ +
// about page is yet to be written ;)
+// come back later
+
+package lzcnt
+
+import "net/http"
+
+func (s *Server) aboutPage(w http.ResponseWriter, r *http.Request) {
+	payload := map[string]any{
+		"Page":  "about.go.html",
+		"Title": "About",
+	}
+
+	tmpl.ExecuteTemplate(w, "index.html", payload)
+}
+
\ No newline at end of file diff --git a/templates/log2.s.html b/templates/log2.s.html new file mode 100644 index 0000000..aad76fd --- /dev/null +++ b/templates/log2.s.html @@ -0,0 +1,14 @@ +
# {{template "link.html" (arr "about" "/about")}}
+# {{template "reset.html" .}}
+    .section    .text
+    .global     log2lzcnt
+    .type       log2lzcnt, @function
+log2lzcnt:              # log2lzcnt({{.Requests}});
+    lzcnt   %rdi, %rdi 
+    movq    $63,  %rax
+    sub     %rdi, %rax
+    ret                 # 2^{{.Log2lzcnt}} requests handled
+
+# copyleft 2025 iskrim46
+# {{template "link.html" (arr "source" "https://github.com/hovertank3d/lzcnt.space")}}
+
\ No newline at end of file -- cgit v1.2.3