Browse Source

Fix unused-function warning on sometimes-used function cto

pull/1089/head
Andrew Waterman 4 years ago
parent
commit
ac89fe6ce3
  1. 2
      riscv/processor.h

2
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)

Loading…
Cancel
Save