From dd4a4aaf8e7cab8e196f7452b8a3f89411cdf742 Mon Sep 17 00:00:00 2001 From: hovertank3d Date: Fri, 17 Jan 2025 15:52:03 +0100 Subject: initial commit --- log2.s | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 log2.s (limited to 'log2.s') diff --git a/log2.s b/log2.s new file mode 100644 index 0000000..63499e6 --- /dev/null +++ b/log2.s @@ -0,0 +1,8 @@ + .section .text + .global log2lzcnt + .type log2lzcnt, @function +log2lzcnt: + lzcnt %rdi, %rdi + movq $63, %rax + sub %rdi, %rax + ret -- cgit v1.2.3