diff options
author | hovertank3d <[email protected]> | 2025-01-18 13:57:23 +0100 |
---|---|---|
committer | hovertank3d <[email protected]> | 2025-01-18 13:57:23 +0100 |
commit | 342b251a2f24263651a4a4104ab8129560d7dd53 (patch) | |
tree | ddf66d565ef1837ff617de64d4478cec1a369d69 /log2.s | |
parent | f60aec7f3669d9cd2e099d75b9d4ccd37035da57 (diff) | |
download | lzcnt.space-342b251a2f24263651a4a4104ab8129560d7dd53.tar.xz lzcnt.space-342b251a2f24263651a4a4104ab8129560d7dd53.zip |
use genhl instead of hardcoding syntax
Diffstat (limited to 'log2.s')
-rw-r--r-- | log2.s | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1,8 +1,10 @@ .section .text .global log2lzcnt .type log2lzcnt, @function -log2lzcnt: - lzcnt %rdi, %rdi +# {{template "source_code.html" .}} +# {{template "reset.html" .}} +log2lzcnt: # log2lzcnt({{.Requests}}); + lzcnt %rdi, %rdi movq $63, %rax sub %rdi, %rax - ret + ret # 2^{{.Log2lzcnt}} requests handled |