aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--riscv/processor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/processor.h b/riscv/processor.h
index 7fc4be7..441e522 100644
--- a/riscv/processor.h
+++ b/riscv/processor.h
@@ -220,7 +220,7 @@ struct state_t
};
// Count number of contiguous 1 bits starting from the LSB.
-static int cto(reg_t val)
+static inline int cto(reg_t val)
{
int res = 0;
while ((val & 1) == 1)