diff options
Diffstat (limited to 'templates/index.html')
-rw-r--r-- | templates/index.html | 53 |
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> |