@@ -42,9 +42,7 @@ pub extern "rust-intrinsic" {
42
42
/// Atomic compare and exchange, release ordering.
43
43
pub fn atomic_cxchg_rel(dst: &mut int, old: int, src: int) -> int;
44
44
45
- #[cfg(not(stage0))]
46
45
pub fn atomic_cxchg_acqrel(dst: &mut int, old: int, src: int) -> int;
47
- #[cfg(not(stage0))]
48
46
pub fn atomic_cxchg_relaxed(dst: &mut int, old: int, src: int) -> int;
49
47
50
48
@@ -53,15 +51,13 @@ pub extern "rust-intrinsic" {
53
51
/// Atomic load, acquire ordering.
54
52
pub fn atomic_load_acq(src: &int) -> int;
55
53
56
- #[cfg(not(stage0))]
57
54
pub fn atomic_load_relaxed(src: &int) -> int;
58
55
59
56
/// Atomic store, sequentially consistent.
60
57
pub fn atomic_store(dst: &mut int, val: int);
61
58
/// Atomic store, release ordering.
62
59
pub fn atomic_store_rel(dst: &mut int, val: int);
63
60
64
- #[cfg(not(stage0))]
65
61
pub fn atomic_store_relaxed(dst: &mut int, val: int);
66
62
67
63
/// Atomic exchange, sequentially consistent.
@@ -70,9 +66,7 @@ pub extern "rust-intrinsic" {
70
66
pub fn atomic_xchg_acq(dst: &mut int, src: int) -> int;
71
67
/// Atomic exchange, release ordering.
72
68
pub fn atomic_xchg_rel(dst: &mut int, src: int) -> int;
73
- #[cfg(not(stage0))]
74
69
pub fn atomic_xchg_acqrel(dst: &mut int, src: int) -> int;
75
- #[cfg(not(stage0))]
76
70
pub fn atomic_xchg_relaxed(dst: &mut int, src: int) -> int;
77
71
78
72
/// Atomic addition, sequentially consistent.
@@ -81,9 +75,7 @@ pub extern "rust-intrinsic" {
81
75
pub fn atomic_xadd_acq(dst: &mut int, src: int) -> int;
82
76
/// Atomic addition, release ordering.
83
77
pub fn atomic_xadd_rel(dst: &mut int, src: int) -> int;
84
- #[cfg(not(stage0))]
85
78
pub fn atomic_xadd_acqrel(dst: &mut int, src: int) -> int;
86
- #[cfg(not(stage0))]
87
79
pub fn atomic_xadd_relaxed(dst: &mut int, src: int) -> int;
88
80
89
81
/// Atomic subtraction, sequentially consistent.
@@ -92,97 +84,55 @@ pub extern "rust-intrinsic" {
92
84
pub fn atomic_xsub_acq(dst: &mut int, src: int) -> int;
93
85
/// Atomic subtraction, release ordering.
94
86
pub fn atomic_xsub_rel(dst: &mut int, src: int) -> int;
95
- #[cfg(not(stage0))]
96
87
pub fn atomic_xsub_acqrel(dst: &mut int, src: int) -> int;
97
- #[cfg(not(stage0))]
98
88
pub fn atomic_xsub_relaxed(dst: &mut int, src: int) -> int;
99
89
100
- #[cfg(not(stage0))]
101
90
pub fn atomic_and(dst: &mut int, src: int) -> int;
102
- #[cfg(not(stage0))]
103
91
pub fn atomic_and_acq(dst: &mut int, src: int) -> int;
104
- #[cfg(not(stage0))]
105
92
pub fn atomic_and_rel(dst: &mut int, src: int) -> int;
106
- #[cfg(not(stage0))]
107
93
pub fn atomic_and_acqrel(dst: &mut int, src: int) -> int;
108
- #[cfg(not(stage0))]
109
94
pub fn atomic_and_relaxed(dst: &mut int, src: int) -> int;
110
95
111
- #[cfg(not(stage0))]
112
96
pub fn atomic_nand(dst: &mut int, src: int) -> int;
113
- #[cfg(not(stage0))]
114
97
pub fn atomic_nand_acq(dst: &mut int, src: int) -> int;
115
- #[cfg(not(stage0))]
116
98
pub fn atomic_nand_rel(dst: &mut int, src: int) -> int;
117
- #[cfg(not(stage0))]
118
99
pub fn atomic_nand_acqrel(dst: &mut int, src: int) -> int;
119
- #[cfg(not(stage0))]
120
100
pub fn atomic_nand_relaxed(dst: &mut int, src: int) -> int;
121
101
122
- #[cfg(not(stage0))]
123
102
pub fn atomic_or(dst: &mut int, src: int) -> int;
124
- #[cfg(not(stage0))]
125
103
pub fn atomic_or_acq(dst: &mut int, src: int) -> int;
126
- #[cfg(not(stage0))]
127
104
pub fn atomic_or_rel(dst: &mut int, src: int) -> int;
128
- #[cfg(not(stage0))]
129
105
pub fn atomic_or_acqrel(dst: &mut int, src: int) -> int;
130
- #[cfg(not(stage0))]
131
106
pub fn atomic_or_relaxed(dst: &mut int, src: int) -> int;
132
107
133
- #[cfg(not(stage0))]
134
108
pub fn atomic_xor(dst: &mut int, src: int) -> int;
135
- #[cfg(not(stage0))]
136
109
pub fn atomic_xor_acq(dst: &mut int, src: int) -> int;
137
- #[cfg(not(stage0))]
138
110
pub fn atomic_xor_rel(dst: &mut int, src: int) -> int;
139
- #[cfg(not(stage0))]
140
111
pub fn atomic_xor_acqrel(dst: &mut int, src: int) -> int;
141
- #[cfg(not(stage0))]
142
112
pub fn atomic_xor_relaxed(dst: &mut int, src: int) -> int;
143
113
144
- #[cfg(not(stage0))]
145
114
pub fn atomic_max(dst: &mut int, src: int) -> int;
146
- #[cfg(not(stage0))]
147
115
pub fn atomic_max_acq(dst: &mut int, src: int) -> int;
148
- #[cfg(not(stage0))]
149
116
pub fn atomic_max_rel(dst: &mut int, src: int) -> int;
150
- #[cfg(not(stage0))]
151
117
pub fn atomic_max_acqrel(dst: &mut int, src: int) -> int;
152
- #[cfg(not(stage0))]
153
118
pub fn atomic_max_relaxed(dst: &mut int, src: int) -> int;
154
119
155
- #[cfg(not(stage0))]
156
120
pub fn atomic_min(dst: &mut int, src: int) -> int;
157
- #[cfg(not(stage0))]
158
121
pub fn atomic_min_acq(dst: &mut int, src: int) -> int;
159
- #[cfg(not(stage0))]
160
122
pub fn atomic_min_rel(dst: &mut int, src: int) -> int;
161
- #[cfg(not(stage0))]
162
123
pub fn atomic_min_acqrel(dst: &mut int, src: int) -> int;
163
- #[cfg(not(stage0))]
164
124
pub fn atomic_min_relaxed(dst: &mut int, src: int) -> int;
165
125
166
- #[cfg(not(stage0))]
167
126
pub fn atomic_umin(dst: &mut int, src: int) -> int;
168
- #[cfg(not(stage0))]
169
127
pub fn atomic_umin_acq(dst: &mut int, src: int) -> int;
170
- #[cfg(not(stage0))]
171
128
pub fn atomic_umin_rel(dst: &mut int, src: int) -> int;
172
- #[cfg(not(stage0))]
173
129
pub fn atomic_umin_acqrel(dst: &mut int, src: int) -> int;
174
- #[cfg(not(stage0))]
175
130
pub fn atomic_umin_relaxed(dst: &mut int, src: int) -> int;
176
131
177
- #[cfg(not(stage0))]
178
132
pub fn atomic_umax(dst: &mut int, src: int) -> int;
179
- #[cfg(not(stage0))]
180
133
pub fn atomic_umax_acq(dst: &mut int, src: int) -> int;
181
- #[cfg(not(stage0))]
182
134
pub fn atomic_umax_rel(dst: &mut int, src: int) -> int;
183
- #[cfg(not(stage0))]
184
135
pub fn atomic_umax_acqrel(dst: &mut int, src: int) -> int;
185
- #[cfg(not(stage0))]
186
136
pub fn atomic_umax_relaxed(dst: &mut int, src: int) -> int;
187
137
188
138
/// The size of a type in bytes.
0 commit comments