aboutsummaryrefslogtreecommitdiff
path: root/templates/index.html
diff options
context:
space:
mode:
authorhovertank3d <[email protected]>2025-01-18 13:57:23 +0100
committerhovertank3d <[email protected]>2025-01-18 13:57:23 +0100
commit342b251a2f24263651a4a4104ab8129560d7dd53 (patch)
treeddf66d565ef1837ff617de64d4478cec1a369d69 /templates/index.html
parentf60aec7f3669d9cd2e099d75b9d4ccd37035da57 (diff)
downloadlzcnt.space-342b251a2f24263651a4a4104ab8129560d7dd53.tar.xz
lzcnt.space-342b251a2f24263651a4a4104ab8129560d7dd53.zip
use genhl instead of hardcoding syntax
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html53
1 files changed, 6 insertions, 47 deletions
diff --git a/templates/index.html b/templates/index.html
index dd4cb2a..85eccab 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -20,56 +20,15 @@
<meta name='viewport' content='width=device-width, initial-scale=1'>
<title>LZCNT</title>
- <!--fdfd-->
- <style>
- .ins {
- color: rgb(254, 254, 91)
- }
-
- .imm {
- color: rgb(31, 145, 31)
- }
-
- .reg {
- color: rgb(115, 158, 213);
- font-weight: bold;
- }
-
- .label {
- color: rgb(70, 70, 240)
- }
-
- .comment {
- color: rgb(31, 145, 31);
- font-weight: bold;
- }
-
- .listing {
- color: white;
- display: flex;
- justify-content: center;
- }
-
- .listing code {
- background-color: rgb(31, 31, 31);
- }
- </style>
- <form id="reset" action="/reset" method="get"></form>
+ <form id="reset" action="/reset" method="get"></form>
</head>
<body>
- <div style="display: flex; justify-content: center;"></div>
- <h2 style="text-align: center;"><code>LZCNT - Count the Number of Leading Zero Bits</code></h2>
- <pre class="listing"><code>
- <code class="comment"># <a href="https://github.com/hovertank3d/lzcnt.space">[source code]</a></code>
- <code class="comment"># <a href="javascript:{}" onclick="document.getElementById('reset').submit(); return false;">[reset counter]</a></code>
- <code class="label">log2lzcnt:</code> <code class="comment"># log2lzcnt({{.Requests}});</code>
- <b><code class="ins"> lzcnt </code></b><code class="reg">%rdi</code>, <code class="reg">%rdi</code>
- <code class="ins"> movq </code><code class="imm">$63</code>, <code class="reg">%rax</code>
- <code class="ins"> sub </code><code class="reg">%rdi</code>, <code class="reg">%rax</code>
- <code class="ins"> ret </code> <code class="comment"># 2^{{.Log2lzcnt}} requests handled</code>
-
-</code></pre>
+ <div style="display: flex; justify-content: center;">
+ <h2 style="text-align: center;"><code>LZCNT - Count the Number of Leading Zero Bits</code></h2>
+ </div>
+ <div style="width: fit-content; margin-left: auto; margin-right: auto;">
+ {{template "log2.s.html" .}}
</div>
</body>