From cde3e5b9f8c0102a19de9416d3d9113cc5086149 Mon Sep 17 00:00:00 2001 From: Abdur-Rahman Mansoor Date: Wed, 29 May 2024 15:56:56 -0400 Subject: [PATCH] perf(pow2): remove loop --- drivers/nvme/nvme.asm | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/nvme/nvme.asm b/drivers/nvme/nvme.asm index 312f276..e6a619d 100644 --- a/drivers/nvme/nvme.asm +++ b/drivers/nvme/nvme.asm @@ -393,12 +393,7 @@ proc pow2 stdcall, x:dword test ecx, ecx jnz @f ret - -@@: - shl eax, 1 - dec ecx - test ecx, ecx - jnz @b + shl eax, ecx pop ecx ret