aboutsummaryrefslogtreecommitdiff
path: root/riscv/v_ext_macros.h
diff options
context:
space:
mode:
authorGianluca Guida <gianluca@rivosinc.com>2023-05-25 14:27:00 +0100
committerGianluca Guida <gianluca@rivosinc.com>2023-05-26 18:30:26 +0100
commit4d3847f0ff293cbf82049bf4bd87bbc431b74347 (patch)
tree40d97eb2f012f26aca27dfa6c25f080a1ba0c982 /riscv/v_ext_macros.h
parent1bcbd715dcca5ac3724ed46bc7ed2018e5137661 (diff)
downloadriscv-isa-sim-4d3847f0ff293cbf82049bf4bd87bbc431b74347.zip
riscv-isa-sim-4d3847f0ff293cbf82049bf4bd87bbc431b74347.tar.gz
riscv-isa-sim-4d3847f0ff293cbf82049bf4bd87bbc431b74347.tar.bz2
decode_macros: move 'is_aligned' from 'v_ext_macros.h'
Diffstat (limited to 'riscv/v_ext_macros.h')
-rw-r--r--riscv/v_ext_macros.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/riscv/v_ext_macros.h b/riscv/v_ext_macros.h
index e00b0c0..8b0d0fd 100644
--- a/riscv/v_ext_macros.h
+++ b/riscv/v_ext_macros.h
@@ -64,11 +64,6 @@ static inline bool is_overlapped_widen(const int astart, int asize,
}
}
-static inline bool is_aligned(const unsigned val, const unsigned pos)
-{
- return pos ? (val & (pos - 1)) == 0 : true;
-}
-
#define VI_NARROW_CHECK_COMMON \
require_vector(true); \
require(P.VU.vflmul <= 4); \