We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cb9fa4 commit 74ad839Copy full SHA for 74ad839
src/generate/generic_atomic.rs
@@ -26,15 +26,15 @@ mod atomic {
26
}
27
28
impl_atomics!(u8, portable_atomic::AtomicU8);
29
- impl_atomics!(i8, portable_atomic::AtomicI8);
30
impl_atomics!(u16, portable_atomic::AtomicU16);
31
- impl_atomics!(i16, portable_atomic::AtomicI16);
32
33
// Exclude 16-bit archs from 32-bit atomics
34
#[cfg(not(target_pointer_width = "16"))]
35
impl_atomics!(u32, portable_atomic::AtomicU32);
36
- #[cfg(not(target_pointer_width = "16"))]
37
- impl_atomics!(i32, portable_atomic::AtomicI32);
+
+ // Enable 64-bit atomics for 64-bit RISCV
+ #[cfg(any(target_pointer_width = "64", target_has_atomic = "64"))]
+ impl_atomics!(u64, portable_atomic::AtomicU64);
38
39
use atomic::AtomicOperations;
40
0 commit comments