diff options
Diffstat (limited to 'riscv/insns/clz.h')
-rw-r--r-- | riscv/insns/clz.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/insns/clz.h b/riscv/insns/clz.h index 6821b2d..d334e40 100644 --- a/riscv/insns/clz.h +++ b/riscv/insns/clz.h @@ -1,4 +1,4 @@ -require_extension('B'); +require_extension(EXT_ZBB); reg_t x = xlen; for (int i = 0; i < xlen; i++) if (1 & (RS1 >> (xlen-i-1))) { x = i; break; } |