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