1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
pub type RadiumBool = if_atomic! {
if atomic(bool) { core::sync::atomic::AtomicBool }
else { core::cell::Cell<bool> }
};
pub type RadiumI8 = if_atomic! {
if atomic(8) { core::sync::atomic::AtomicI8 }
else { core::cell::Cell<i8> }
};
pub type RadiumU8 = if_atomic! {
if atomic(8) { core::sync::atomic::AtomicU8 }
else { core::cell::Cell<u8> }
};
pub type RadiumI16 = if_atomic! {
if atomic(16) { core::sync::atomic::AtomicI16 }
else { core::cell::Cell<i16> }
};
pub type RadiumU16 = if_atomic! {
if atomic(16) { core::sync::atomic::AtomicU16 }
else { core::cell::Cell<u16> }
};
pub type RadiumI32 = if_atomic! {
if atomic(32) { core::sync::atomic::AtomicI32 }
else { core::cell::Cell<i32> }
};
pub type RadiumU32 = if_atomic! {
if atomic(32) { core::sync::atomic::AtomicU32 }
else { core::cell::Cell<u32> }
};
pub type RadiumI64 = if_atomic! {
if atomic(64) { core::sync::atomic::AtomicI64 }
else { core::cell::Cell<i64> }
};
pub type RadiumU64 = if_atomic! {
if atomic(64) { core::sync::atomic::AtomicU64 }
else { core::cell::Cell<u64> }
};
pub type RadiumIsize = if_atomic! {
if atomic(size) { core::sync::atomic::AtomicIsize }
else { core::cell::Cell<isize> }
};
pub type RadiumUsize = if_atomic! {
if atomic(size) { core::sync::atomic::AtomicUsize }
else { core::cell::Cell<usize> }
};
pub type RadiumPtr<T> = if_atomic! {
if atomic(ptr) { core::sync::atomic::AtomicPtr<T> }
else { core::cell::Cell<*mut T> }
};