From 795f5a048b2e844f049f90f6deb594794425029c Mon Sep 17 00:00:00 2001 From: HidetaroTanaka Date: Wed, 31 Jan 2024 18:54:17 +0900 Subject: [PATCH] `li a0,0` is shorter so it should compile slightly faster --- optimized_implementations/main.riscv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/optimized_implementations/main.riscv b/optimized_implementations/main.riscv index 88a4197..c4330f9 100644 --- a/optimized_implementations/main.riscv +++ b/optimized_implementations/main.riscv @@ -1 +1 @@ -is_prime:mv a0,zero;ret \ No newline at end of file +is_prime:li a0,0;ret \ No newline at end of file