small correction for vector_functions
This commit is contained in:
parent
b5862039e7
commit
b1ceac2c2a
@ -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));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user