small correction for vector_functions

This commit is contained in:
Eyck-Alexander Jentzsch 2025-02-13 19:41:29 +01:00
parent b5862039e7
commit b1ceac2c2a

View File

@ -74,7 +74,7 @@ double vtype_t::lmul() {
int8_t signed_vlmul = (vlmul >> 2) ? 0b11111000 | vlmul : vlmul;
return pow(2, signed_vlmul);
}
bool vmask_view::operator[](size_t idx) {
bool vmask_view::operator[](size_t idx) const {
assert(idx < elem_count);
return *(start + idx / 8) & (1U << (idx % 8));
}