Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1// SPDX-License-Identifier: GPL-2.0
2
3// Generated by scripts/atomic/gen-rust-atomic-helpers.sh
4// DO NOT MODIFY THIS FILE DIRECTLY
5
6/*
7 * This file provides helpers for the various atomic functions for Rust.
8 */
9#ifndef _RUST_ATOMIC_API_H
10#define _RUST_ATOMIC_API_H
11
12#include <linux/atomic.h>
13
14__rust_helper int
15rust_helper_atomic_read(const atomic_t *v)
16{
17 return atomic_read(v);
18}
19
20__rust_helper int
21rust_helper_atomic_read_acquire(const atomic_t *v)
22{
23 return atomic_read_acquire(v);
24}
25
26__rust_helper void
27rust_helper_atomic_set(atomic_t *v, int i)
28{
29 atomic_set(v, i);
30}
31
32__rust_helper void
33rust_helper_atomic_set_release(atomic_t *v, int i)
34{
35 atomic_set_release(v, i);
36}
37
38__rust_helper void
39rust_helper_atomic_add(int i, atomic_t *v)
40{
41 atomic_add(i, v);
42}
43
44__rust_helper int
45rust_helper_atomic_add_return(int i, atomic_t *v)
46{
47 return atomic_add_return(i, v);
48}
49
50__rust_helper int
51rust_helper_atomic_add_return_acquire(int i, atomic_t *v)
52{
53 return atomic_add_return_acquire(i, v);
54}
55
56__rust_helper int
57rust_helper_atomic_add_return_release(int i, atomic_t *v)
58{
59 return atomic_add_return_release(i, v);
60}
61
62__rust_helper int
63rust_helper_atomic_add_return_relaxed(int i, atomic_t *v)
64{
65 return atomic_add_return_relaxed(i, v);
66}
67
68__rust_helper int
69rust_helper_atomic_fetch_add(int i, atomic_t *v)
70{
71 return atomic_fetch_add(i, v);
72}
73
74__rust_helper int
75rust_helper_atomic_fetch_add_acquire(int i, atomic_t *v)
76{
77 return atomic_fetch_add_acquire(i, v);
78}
79
80__rust_helper int
81rust_helper_atomic_fetch_add_release(int i, atomic_t *v)
82{
83 return atomic_fetch_add_release(i, v);
84}
85
86__rust_helper int
87rust_helper_atomic_fetch_add_relaxed(int i, atomic_t *v)
88{
89 return atomic_fetch_add_relaxed(i, v);
90}
91
92__rust_helper void
93rust_helper_atomic_sub(int i, atomic_t *v)
94{
95 atomic_sub(i, v);
96}
97
98__rust_helper int
99rust_helper_atomic_sub_return(int i, atomic_t *v)
100{
101 return atomic_sub_return(i, v);
102}
103
104__rust_helper int
105rust_helper_atomic_sub_return_acquire(int i, atomic_t *v)
106{
107 return atomic_sub_return_acquire(i, v);
108}
109
110__rust_helper int
111rust_helper_atomic_sub_return_release(int i, atomic_t *v)
112{
113 return atomic_sub_return_release(i, v);
114}
115
116__rust_helper int
117rust_helper_atomic_sub_return_relaxed(int i, atomic_t *v)
118{
119 return atomic_sub_return_relaxed(i, v);
120}
121
122__rust_helper int
123rust_helper_atomic_fetch_sub(int i, atomic_t *v)
124{
125 return atomic_fetch_sub(i, v);
126}
127
128__rust_helper int
129rust_helper_atomic_fetch_sub_acquire(int i, atomic_t *v)
130{
131 return atomic_fetch_sub_acquire(i, v);
132}
133
134__rust_helper int
135rust_helper_atomic_fetch_sub_release(int i, atomic_t *v)
136{
137 return atomic_fetch_sub_release(i, v);
138}
139
140__rust_helper int
141rust_helper_atomic_fetch_sub_relaxed(int i, atomic_t *v)
142{
143 return atomic_fetch_sub_relaxed(i, v);
144}
145
146__rust_helper void
147rust_helper_atomic_inc(atomic_t *v)
148{
149 atomic_inc(v);
150}
151
152__rust_helper int
153rust_helper_atomic_inc_return(atomic_t *v)
154{
155 return atomic_inc_return(v);
156}
157
158__rust_helper int
159rust_helper_atomic_inc_return_acquire(atomic_t *v)
160{
161 return atomic_inc_return_acquire(v);
162}
163
164__rust_helper int
165rust_helper_atomic_inc_return_release(atomic_t *v)
166{
167 return atomic_inc_return_release(v);
168}
169
170__rust_helper int
171rust_helper_atomic_inc_return_relaxed(atomic_t *v)
172{
173 return atomic_inc_return_relaxed(v);
174}
175
176__rust_helper int
177rust_helper_atomic_fetch_inc(atomic_t *v)
178{
179 return atomic_fetch_inc(v);
180}
181
182__rust_helper int
183rust_helper_atomic_fetch_inc_acquire(atomic_t *v)
184{
185 return atomic_fetch_inc_acquire(v);
186}
187
188__rust_helper int
189rust_helper_atomic_fetch_inc_release(atomic_t *v)
190{
191 return atomic_fetch_inc_release(v);
192}
193
194__rust_helper int
195rust_helper_atomic_fetch_inc_relaxed(atomic_t *v)
196{
197 return atomic_fetch_inc_relaxed(v);
198}
199
200__rust_helper void
201rust_helper_atomic_dec(atomic_t *v)
202{
203 atomic_dec(v);
204}
205
206__rust_helper int
207rust_helper_atomic_dec_return(atomic_t *v)
208{
209 return atomic_dec_return(v);
210}
211
212__rust_helper int
213rust_helper_atomic_dec_return_acquire(atomic_t *v)
214{
215 return atomic_dec_return_acquire(v);
216}
217
218__rust_helper int
219rust_helper_atomic_dec_return_release(atomic_t *v)
220{
221 return atomic_dec_return_release(v);
222}
223
224__rust_helper int
225rust_helper_atomic_dec_return_relaxed(atomic_t *v)
226{
227 return atomic_dec_return_relaxed(v);
228}
229
230__rust_helper int
231rust_helper_atomic_fetch_dec(atomic_t *v)
232{
233 return atomic_fetch_dec(v);
234}
235
236__rust_helper int
237rust_helper_atomic_fetch_dec_acquire(atomic_t *v)
238{
239 return atomic_fetch_dec_acquire(v);
240}
241
242__rust_helper int
243rust_helper_atomic_fetch_dec_release(atomic_t *v)
244{
245 return atomic_fetch_dec_release(v);
246}
247
248__rust_helper int
249rust_helper_atomic_fetch_dec_relaxed(atomic_t *v)
250{
251 return atomic_fetch_dec_relaxed(v);
252}
253
254__rust_helper void
255rust_helper_atomic_and(int i, atomic_t *v)
256{
257 atomic_and(i, v);
258}
259
260__rust_helper int
261rust_helper_atomic_fetch_and(int i, atomic_t *v)
262{
263 return atomic_fetch_and(i, v);
264}
265
266__rust_helper int
267rust_helper_atomic_fetch_and_acquire(int i, atomic_t *v)
268{
269 return atomic_fetch_and_acquire(i, v);
270}
271
272__rust_helper int
273rust_helper_atomic_fetch_and_release(int i, atomic_t *v)
274{
275 return atomic_fetch_and_release(i, v);
276}
277
278__rust_helper int
279rust_helper_atomic_fetch_and_relaxed(int i, atomic_t *v)
280{
281 return atomic_fetch_and_relaxed(i, v);
282}
283
284__rust_helper void
285rust_helper_atomic_andnot(int i, atomic_t *v)
286{
287 atomic_andnot(i, v);
288}
289
290__rust_helper int
291rust_helper_atomic_fetch_andnot(int i, atomic_t *v)
292{
293 return atomic_fetch_andnot(i, v);
294}
295
296__rust_helper int
297rust_helper_atomic_fetch_andnot_acquire(int i, atomic_t *v)
298{
299 return atomic_fetch_andnot_acquire(i, v);
300}
301
302__rust_helper int
303rust_helper_atomic_fetch_andnot_release(int i, atomic_t *v)
304{
305 return atomic_fetch_andnot_release(i, v);
306}
307
308__rust_helper int
309rust_helper_atomic_fetch_andnot_relaxed(int i, atomic_t *v)
310{
311 return atomic_fetch_andnot_relaxed(i, v);
312}
313
314__rust_helper void
315rust_helper_atomic_or(int i, atomic_t *v)
316{
317 atomic_or(i, v);
318}
319
320__rust_helper int
321rust_helper_atomic_fetch_or(int i, atomic_t *v)
322{
323 return atomic_fetch_or(i, v);
324}
325
326__rust_helper int
327rust_helper_atomic_fetch_or_acquire(int i, atomic_t *v)
328{
329 return atomic_fetch_or_acquire(i, v);
330}
331
332__rust_helper int
333rust_helper_atomic_fetch_or_release(int i, atomic_t *v)
334{
335 return atomic_fetch_or_release(i, v);
336}
337
338__rust_helper int
339rust_helper_atomic_fetch_or_relaxed(int i, atomic_t *v)
340{
341 return atomic_fetch_or_relaxed(i, v);
342}
343
344__rust_helper void
345rust_helper_atomic_xor(int i, atomic_t *v)
346{
347 atomic_xor(i, v);
348}
349
350__rust_helper int
351rust_helper_atomic_fetch_xor(int i, atomic_t *v)
352{
353 return atomic_fetch_xor(i, v);
354}
355
356__rust_helper int
357rust_helper_atomic_fetch_xor_acquire(int i, atomic_t *v)
358{
359 return atomic_fetch_xor_acquire(i, v);
360}
361
362__rust_helper int
363rust_helper_atomic_fetch_xor_release(int i, atomic_t *v)
364{
365 return atomic_fetch_xor_release(i, v);
366}
367
368__rust_helper int
369rust_helper_atomic_fetch_xor_relaxed(int i, atomic_t *v)
370{
371 return atomic_fetch_xor_relaxed(i, v);
372}
373
374__rust_helper int
375rust_helper_atomic_xchg(atomic_t *v, int new)
376{
377 return atomic_xchg(v, new);
378}
379
380__rust_helper int
381rust_helper_atomic_xchg_acquire(atomic_t *v, int new)
382{
383 return atomic_xchg_acquire(v, new);
384}
385
386__rust_helper int
387rust_helper_atomic_xchg_release(atomic_t *v, int new)
388{
389 return atomic_xchg_release(v, new);
390}
391
392__rust_helper int
393rust_helper_atomic_xchg_relaxed(atomic_t *v, int new)
394{
395 return atomic_xchg_relaxed(v, new);
396}
397
398__rust_helper int
399rust_helper_atomic_cmpxchg(atomic_t *v, int old, int new)
400{
401 return atomic_cmpxchg(v, old, new);
402}
403
404__rust_helper int
405rust_helper_atomic_cmpxchg_acquire(atomic_t *v, int old, int new)
406{
407 return atomic_cmpxchg_acquire(v, old, new);
408}
409
410__rust_helper int
411rust_helper_atomic_cmpxchg_release(atomic_t *v, int old, int new)
412{
413 return atomic_cmpxchg_release(v, old, new);
414}
415
416__rust_helper int
417rust_helper_atomic_cmpxchg_relaxed(atomic_t *v, int old, int new)
418{
419 return atomic_cmpxchg_relaxed(v, old, new);
420}
421
422__rust_helper bool
423rust_helper_atomic_try_cmpxchg(atomic_t *v, int *old, int new)
424{
425 return atomic_try_cmpxchg(v, old, new);
426}
427
428__rust_helper bool
429rust_helper_atomic_try_cmpxchg_acquire(atomic_t *v, int *old, int new)
430{
431 return atomic_try_cmpxchg_acquire(v, old, new);
432}
433
434__rust_helper bool
435rust_helper_atomic_try_cmpxchg_release(atomic_t *v, int *old, int new)
436{
437 return atomic_try_cmpxchg_release(v, old, new);
438}
439
440__rust_helper bool
441rust_helper_atomic_try_cmpxchg_relaxed(atomic_t *v, int *old, int new)
442{
443 return atomic_try_cmpxchg_relaxed(v, old, new);
444}
445
446__rust_helper bool
447rust_helper_atomic_sub_and_test(int i, atomic_t *v)
448{
449 return atomic_sub_and_test(i, v);
450}
451
452__rust_helper bool
453rust_helper_atomic_dec_and_test(atomic_t *v)
454{
455 return atomic_dec_and_test(v);
456}
457
458__rust_helper bool
459rust_helper_atomic_inc_and_test(atomic_t *v)
460{
461 return atomic_inc_and_test(v);
462}
463
464__rust_helper bool
465rust_helper_atomic_add_negative(int i, atomic_t *v)
466{
467 return atomic_add_negative(i, v);
468}
469
470__rust_helper bool
471rust_helper_atomic_add_negative_acquire(int i, atomic_t *v)
472{
473 return atomic_add_negative_acquire(i, v);
474}
475
476__rust_helper bool
477rust_helper_atomic_add_negative_release(int i, atomic_t *v)
478{
479 return atomic_add_negative_release(i, v);
480}
481
482__rust_helper bool
483rust_helper_atomic_add_negative_relaxed(int i, atomic_t *v)
484{
485 return atomic_add_negative_relaxed(i, v);
486}
487
488__rust_helper int
489rust_helper_atomic_fetch_add_unless(atomic_t *v, int a, int u)
490{
491 return atomic_fetch_add_unless(v, a, u);
492}
493
494__rust_helper bool
495rust_helper_atomic_add_unless(atomic_t *v, int a, int u)
496{
497 return atomic_add_unless(v, a, u);
498}
499
500__rust_helper bool
501rust_helper_atomic_inc_not_zero(atomic_t *v)
502{
503 return atomic_inc_not_zero(v);
504}
505
506__rust_helper bool
507rust_helper_atomic_inc_unless_negative(atomic_t *v)
508{
509 return atomic_inc_unless_negative(v);
510}
511
512__rust_helper bool
513rust_helper_atomic_dec_unless_positive(atomic_t *v)
514{
515 return atomic_dec_unless_positive(v);
516}
517
518__rust_helper int
519rust_helper_atomic_dec_if_positive(atomic_t *v)
520{
521 return atomic_dec_if_positive(v);
522}
523
524__rust_helper s64
525rust_helper_atomic64_read(const atomic64_t *v)
526{
527 return atomic64_read(v);
528}
529
530__rust_helper s64
531rust_helper_atomic64_read_acquire(const atomic64_t *v)
532{
533 return atomic64_read_acquire(v);
534}
535
536__rust_helper void
537rust_helper_atomic64_set(atomic64_t *v, s64 i)
538{
539 atomic64_set(v, i);
540}
541
542__rust_helper void
543rust_helper_atomic64_set_release(atomic64_t *v, s64 i)
544{
545 atomic64_set_release(v, i);
546}
547
548__rust_helper void
549rust_helper_atomic64_add(s64 i, atomic64_t *v)
550{
551 atomic64_add(i, v);
552}
553
554__rust_helper s64
555rust_helper_atomic64_add_return(s64 i, atomic64_t *v)
556{
557 return atomic64_add_return(i, v);
558}
559
560__rust_helper s64
561rust_helper_atomic64_add_return_acquire(s64 i, atomic64_t *v)
562{
563 return atomic64_add_return_acquire(i, v);
564}
565
566__rust_helper s64
567rust_helper_atomic64_add_return_release(s64 i, atomic64_t *v)
568{
569 return atomic64_add_return_release(i, v);
570}
571
572__rust_helper s64
573rust_helper_atomic64_add_return_relaxed(s64 i, atomic64_t *v)
574{
575 return atomic64_add_return_relaxed(i, v);
576}
577
578__rust_helper s64
579rust_helper_atomic64_fetch_add(s64 i, atomic64_t *v)
580{
581 return atomic64_fetch_add(i, v);
582}
583
584__rust_helper s64
585rust_helper_atomic64_fetch_add_acquire(s64 i, atomic64_t *v)
586{
587 return atomic64_fetch_add_acquire(i, v);
588}
589
590__rust_helper s64
591rust_helper_atomic64_fetch_add_release(s64 i, atomic64_t *v)
592{
593 return atomic64_fetch_add_release(i, v);
594}
595
596__rust_helper s64
597rust_helper_atomic64_fetch_add_relaxed(s64 i, atomic64_t *v)
598{
599 return atomic64_fetch_add_relaxed(i, v);
600}
601
602__rust_helper void
603rust_helper_atomic64_sub(s64 i, atomic64_t *v)
604{
605 atomic64_sub(i, v);
606}
607
608__rust_helper s64
609rust_helper_atomic64_sub_return(s64 i, atomic64_t *v)
610{
611 return atomic64_sub_return(i, v);
612}
613
614__rust_helper s64
615rust_helper_atomic64_sub_return_acquire(s64 i, atomic64_t *v)
616{
617 return atomic64_sub_return_acquire(i, v);
618}
619
620__rust_helper s64
621rust_helper_atomic64_sub_return_release(s64 i, atomic64_t *v)
622{
623 return atomic64_sub_return_release(i, v);
624}
625
626__rust_helper s64
627rust_helper_atomic64_sub_return_relaxed(s64 i, atomic64_t *v)
628{
629 return atomic64_sub_return_relaxed(i, v);
630}
631
632__rust_helper s64
633rust_helper_atomic64_fetch_sub(s64 i, atomic64_t *v)
634{
635 return atomic64_fetch_sub(i, v);
636}
637
638__rust_helper s64
639rust_helper_atomic64_fetch_sub_acquire(s64 i, atomic64_t *v)
640{
641 return atomic64_fetch_sub_acquire(i, v);
642}
643
644__rust_helper s64
645rust_helper_atomic64_fetch_sub_release(s64 i, atomic64_t *v)
646{
647 return atomic64_fetch_sub_release(i, v);
648}
649
650__rust_helper s64
651rust_helper_atomic64_fetch_sub_relaxed(s64 i, atomic64_t *v)
652{
653 return atomic64_fetch_sub_relaxed(i, v);
654}
655
656__rust_helper void
657rust_helper_atomic64_inc(atomic64_t *v)
658{
659 atomic64_inc(v);
660}
661
662__rust_helper s64
663rust_helper_atomic64_inc_return(atomic64_t *v)
664{
665 return atomic64_inc_return(v);
666}
667
668__rust_helper s64
669rust_helper_atomic64_inc_return_acquire(atomic64_t *v)
670{
671 return atomic64_inc_return_acquire(v);
672}
673
674__rust_helper s64
675rust_helper_atomic64_inc_return_release(atomic64_t *v)
676{
677 return atomic64_inc_return_release(v);
678}
679
680__rust_helper s64
681rust_helper_atomic64_inc_return_relaxed(atomic64_t *v)
682{
683 return atomic64_inc_return_relaxed(v);
684}
685
686__rust_helper s64
687rust_helper_atomic64_fetch_inc(atomic64_t *v)
688{
689 return atomic64_fetch_inc(v);
690}
691
692__rust_helper s64
693rust_helper_atomic64_fetch_inc_acquire(atomic64_t *v)
694{
695 return atomic64_fetch_inc_acquire(v);
696}
697
698__rust_helper s64
699rust_helper_atomic64_fetch_inc_release(atomic64_t *v)
700{
701 return atomic64_fetch_inc_release(v);
702}
703
704__rust_helper s64
705rust_helper_atomic64_fetch_inc_relaxed(atomic64_t *v)
706{
707 return atomic64_fetch_inc_relaxed(v);
708}
709
710__rust_helper void
711rust_helper_atomic64_dec(atomic64_t *v)
712{
713 atomic64_dec(v);
714}
715
716__rust_helper s64
717rust_helper_atomic64_dec_return(atomic64_t *v)
718{
719 return atomic64_dec_return(v);
720}
721
722__rust_helper s64
723rust_helper_atomic64_dec_return_acquire(atomic64_t *v)
724{
725 return atomic64_dec_return_acquire(v);
726}
727
728__rust_helper s64
729rust_helper_atomic64_dec_return_release(atomic64_t *v)
730{
731 return atomic64_dec_return_release(v);
732}
733
734__rust_helper s64
735rust_helper_atomic64_dec_return_relaxed(atomic64_t *v)
736{
737 return atomic64_dec_return_relaxed(v);
738}
739
740__rust_helper s64
741rust_helper_atomic64_fetch_dec(atomic64_t *v)
742{
743 return atomic64_fetch_dec(v);
744}
745
746__rust_helper s64
747rust_helper_atomic64_fetch_dec_acquire(atomic64_t *v)
748{
749 return atomic64_fetch_dec_acquire(v);
750}
751
752__rust_helper s64
753rust_helper_atomic64_fetch_dec_release(atomic64_t *v)
754{
755 return atomic64_fetch_dec_release(v);
756}
757
758__rust_helper s64
759rust_helper_atomic64_fetch_dec_relaxed(atomic64_t *v)
760{
761 return atomic64_fetch_dec_relaxed(v);
762}
763
764__rust_helper void
765rust_helper_atomic64_and(s64 i, atomic64_t *v)
766{
767 atomic64_and(i, v);
768}
769
770__rust_helper s64
771rust_helper_atomic64_fetch_and(s64 i, atomic64_t *v)
772{
773 return atomic64_fetch_and(i, v);
774}
775
776__rust_helper s64
777rust_helper_atomic64_fetch_and_acquire(s64 i, atomic64_t *v)
778{
779 return atomic64_fetch_and_acquire(i, v);
780}
781
782__rust_helper s64
783rust_helper_atomic64_fetch_and_release(s64 i, atomic64_t *v)
784{
785 return atomic64_fetch_and_release(i, v);
786}
787
788__rust_helper s64
789rust_helper_atomic64_fetch_and_relaxed(s64 i, atomic64_t *v)
790{
791 return atomic64_fetch_and_relaxed(i, v);
792}
793
794__rust_helper void
795rust_helper_atomic64_andnot(s64 i, atomic64_t *v)
796{
797 atomic64_andnot(i, v);
798}
799
800__rust_helper s64
801rust_helper_atomic64_fetch_andnot(s64 i, atomic64_t *v)
802{
803 return atomic64_fetch_andnot(i, v);
804}
805
806__rust_helper s64
807rust_helper_atomic64_fetch_andnot_acquire(s64 i, atomic64_t *v)
808{
809 return atomic64_fetch_andnot_acquire(i, v);
810}
811
812__rust_helper s64
813rust_helper_atomic64_fetch_andnot_release(s64 i, atomic64_t *v)
814{
815 return atomic64_fetch_andnot_release(i, v);
816}
817
818__rust_helper s64
819rust_helper_atomic64_fetch_andnot_relaxed(s64 i, atomic64_t *v)
820{
821 return atomic64_fetch_andnot_relaxed(i, v);
822}
823
824__rust_helper void
825rust_helper_atomic64_or(s64 i, atomic64_t *v)
826{
827 atomic64_or(i, v);
828}
829
830__rust_helper s64
831rust_helper_atomic64_fetch_or(s64 i, atomic64_t *v)
832{
833 return atomic64_fetch_or(i, v);
834}
835
836__rust_helper s64
837rust_helper_atomic64_fetch_or_acquire(s64 i, atomic64_t *v)
838{
839 return atomic64_fetch_or_acquire(i, v);
840}
841
842__rust_helper s64
843rust_helper_atomic64_fetch_or_release(s64 i, atomic64_t *v)
844{
845 return atomic64_fetch_or_release(i, v);
846}
847
848__rust_helper s64
849rust_helper_atomic64_fetch_or_relaxed(s64 i, atomic64_t *v)
850{
851 return atomic64_fetch_or_relaxed(i, v);
852}
853
854__rust_helper void
855rust_helper_atomic64_xor(s64 i, atomic64_t *v)
856{
857 atomic64_xor(i, v);
858}
859
860__rust_helper s64
861rust_helper_atomic64_fetch_xor(s64 i, atomic64_t *v)
862{
863 return atomic64_fetch_xor(i, v);
864}
865
866__rust_helper s64
867rust_helper_atomic64_fetch_xor_acquire(s64 i, atomic64_t *v)
868{
869 return atomic64_fetch_xor_acquire(i, v);
870}
871
872__rust_helper s64
873rust_helper_atomic64_fetch_xor_release(s64 i, atomic64_t *v)
874{
875 return atomic64_fetch_xor_release(i, v);
876}
877
878__rust_helper s64
879rust_helper_atomic64_fetch_xor_relaxed(s64 i, atomic64_t *v)
880{
881 return atomic64_fetch_xor_relaxed(i, v);
882}
883
884__rust_helper s64
885rust_helper_atomic64_xchg(atomic64_t *v, s64 new)
886{
887 return atomic64_xchg(v, new);
888}
889
890__rust_helper s64
891rust_helper_atomic64_xchg_acquire(atomic64_t *v, s64 new)
892{
893 return atomic64_xchg_acquire(v, new);
894}
895
896__rust_helper s64
897rust_helper_atomic64_xchg_release(atomic64_t *v, s64 new)
898{
899 return atomic64_xchg_release(v, new);
900}
901
902__rust_helper s64
903rust_helper_atomic64_xchg_relaxed(atomic64_t *v, s64 new)
904{
905 return atomic64_xchg_relaxed(v, new);
906}
907
908__rust_helper s64
909rust_helper_atomic64_cmpxchg(atomic64_t *v, s64 old, s64 new)
910{
911 return atomic64_cmpxchg(v, old, new);
912}
913
914__rust_helper s64
915rust_helper_atomic64_cmpxchg_acquire(atomic64_t *v, s64 old, s64 new)
916{
917 return atomic64_cmpxchg_acquire(v, old, new);
918}
919
920__rust_helper s64
921rust_helper_atomic64_cmpxchg_release(atomic64_t *v, s64 old, s64 new)
922{
923 return atomic64_cmpxchg_release(v, old, new);
924}
925
926__rust_helper s64
927rust_helper_atomic64_cmpxchg_relaxed(atomic64_t *v, s64 old, s64 new)
928{
929 return atomic64_cmpxchg_relaxed(v, old, new);
930}
931
932__rust_helper bool
933rust_helper_atomic64_try_cmpxchg(atomic64_t *v, s64 *old, s64 new)
934{
935 return atomic64_try_cmpxchg(v, old, new);
936}
937
938__rust_helper bool
939rust_helper_atomic64_try_cmpxchg_acquire(atomic64_t *v, s64 *old, s64 new)
940{
941 return atomic64_try_cmpxchg_acquire(v, old, new);
942}
943
944__rust_helper bool
945rust_helper_atomic64_try_cmpxchg_release(atomic64_t *v, s64 *old, s64 new)
946{
947 return atomic64_try_cmpxchg_release(v, old, new);
948}
949
950__rust_helper bool
951rust_helper_atomic64_try_cmpxchg_relaxed(atomic64_t *v, s64 *old, s64 new)
952{
953 return atomic64_try_cmpxchg_relaxed(v, old, new);
954}
955
956__rust_helper bool
957rust_helper_atomic64_sub_and_test(s64 i, atomic64_t *v)
958{
959 return atomic64_sub_and_test(i, v);
960}
961
962__rust_helper bool
963rust_helper_atomic64_dec_and_test(atomic64_t *v)
964{
965 return atomic64_dec_and_test(v);
966}
967
968__rust_helper bool
969rust_helper_atomic64_inc_and_test(atomic64_t *v)
970{
971 return atomic64_inc_and_test(v);
972}
973
974__rust_helper bool
975rust_helper_atomic64_add_negative(s64 i, atomic64_t *v)
976{
977 return atomic64_add_negative(i, v);
978}
979
980__rust_helper bool
981rust_helper_atomic64_add_negative_acquire(s64 i, atomic64_t *v)
982{
983 return atomic64_add_negative_acquire(i, v);
984}
985
986__rust_helper bool
987rust_helper_atomic64_add_negative_release(s64 i, atomic64_t *v)
988{
989 return atomic64_add_negative_release(i, v);
990}
991
992__rust_helper bool
993rust_helper_atomic64_add_negative_relaxed(s64 i, atomic64_t *v)
994{
995 return atomic64_add_negative_relaxed(i, v);
996}
997
998__rust_helper s64
999rust_helper_atomic64_fetch_add_unless(atomic64_t *v, s64 a, s64 u)
1000{
1001 return atomic64_fetch_add_unless(v, a, u);
1002}
1003
1004__rust_helper bool
1005rust_helper_atomic64_add_unless(atomic64_t *v, s64 a, s64 u)
1006{
1007 return atomic64_add_unless(v, a, u);
1008}
1009
1010__rust_helper bool
1011rust_helper_atomic64_inc_not_zero(atomic64_t *v)
1012{
1013 return atomic64_inc_not_zero(v);
1014}
1015
1016__rust_helper bool
1017rust_helper_atomic64_inc_unless_negative(atomic64_t *v)
1018{
1019 return atomic64_inc_unless_negative(v);
1020}
1021
1022__rust_helper bool
1023rust_helper_atomic64_dec_unless_positive(atomic64_t *v)
1024{
1025 return atomic64_dec_unless_positive(v);
1026}
1027
1028__rust_helper s64
1029rust_helper_atomic64_dec_if_positive(atomic64_t *v)
1030{
1031 return atomic64_dec_if_positive(v);
1032}
1033
1034#endif /* _RUST_ATOMIC_API_H */
1035// e4edb6174dd42a265284958f00a7cea7ddb464b1