From fde7abc544f0797caeb1419ca842fed47631072d Mon Sep 17 00:00:00 2001 From: Elaina Claus Date: Sat, 6 Sep 2025 08:38:16 -0400 Subject: [PATCH] replace or opcode with test test only updates flags --- include/util/arena_alloc.nasm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/util/arena_alloc.nasm b/include/util/arena_alloc.nasm index c092ea6..e9a2be6 100644 --- a/include/util/arena_alloc.nasm +++ b/include/util/arena_alloc.nasm @@ -50,7 +50,7 @@ arena_align_up: mov ax, [bp + 4] ; x mov bx, [bp + 6] ; a - or bx, bx + test bx, bx jz .endp ; enforce power-of-two for alignment, return x