File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
libcxx/include/experimental/__simd Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -40,11 +40,11 @@ struct __simd_storage<_Tp, simd_abi::__vec_ext<_Np>> {
40
40
_Tp __data __attribute__ ((__vector_size__(std::__bit_ceil((sizeof (_Tp) * _Np)))));
41
41
42
42
_LIBCPP_HIDE_FROM_ABI _Tp __get (size_t __idx) const noexcept {
43
- _LIBCPP_ASSERT_VALID_ELEMENT_ACCESS (__idx >= 0 && __idx < _Np, " Index is out of bounds" );
43
+ _LIBCPP_ASSERT_VALID_ELEMENT_ACCESS (__idx < _Np, " Index is out of bounds" );
44
44
return __data[__idx];
45
45
}
46
46
_LIBCPP_HIDE_FROM_ABI void __set (size_t __idx, _Tp __v) noexcept {
47
- _LIBCPP_ASSERT_VALID_ELEMENT_ACCESS (__idx >= 0 && __idx < _Np, " Index is out of bounds" );
47
+ _LIBCPP_ASSERT_VALID_ELEMENT_ACCESS (__idx < _Np, " Index is out of bounds" );
48
48
__data[__idx] = __v;
49
49
}
50
50
};
You can’t perform that action at this time.
0 commit comments