We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 029ec05 commit b4a6aebCopy full SHA for b4a6aeb
crates/core_simd/src/ops.rs
@@ -99,7 +99,7 @@ macro_rules! int_divrem_guard {
99
100
// aarch64 div fails for arbitrary `v % 0`, mod fails when rhs is MIN, for non-powers-of-two
101
// these operations aren't vectorized on aarch64 anyway
102
- #[cfg(target_arch = "aarch64")]
+ #[cfg(any(target_arch = "aarch64", target_arch = "riscv32", target_arch = "riscv64"))]
103
{
104
let mut out = Simd::splat(0 as _);
105
for i in 0..Self::LEN {
@@ -108,7 +108,7 @@ macro_rules! int_divrem_guard {
108
out
109
}
110
111
- #[cfg(not(target_arch = "aarch64"))]
+ #[cfg(not(any(target_arch = "aarch64", target_arch = "riscv32", target_arch = "riscv64")))]
112
113
// Safety: $lhs and rhs are vectors
114
unsafe { core::intrinsics::simd::$simd_call($lhs, rhs) }
0 commit comments