| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035 |
- // SPDX-License-Identifier: GPL-2.0
- // Generated by scripts/atomic/gen-rust-atomic-helpers.sh
- // DO NOT MODIFY THIS FILE DIRECTLY
- /*
- * This file provides helpers for the various atomic functions for Rust.
- */
- #ifndef _RUST_ATOMIC_API_H
- #define _RUST_ATOMIC_API_H
- #include <linux/atomic.h>
- __rust_helper int
- rust_helper_atomic_read(const atomic_t *v)
- {
- return atomic_read(v);
- }
- __rust_helper int
- rust_helper_atomic_read_acquire(const atomic_t *v)
- {
- return atomic_read_acquire(v);
- }
- __rust_helper void
- rust_helper_atomic_set(atomic_t *v, int i)
- {
- atomic_set(v, i);
- }
- __rust_helper void
- rust_helper_atomic_set_release(atomic_t *v, int i)
- {
- atomic_set_release(v, i);
- }
- __rust_helper void
- rust_helper_atomic_add(int i, atomic_t *v)
- {
- atomic_add(i, v);
- }
- __rust_helper int
- rust_helper_atomic_add_return(int i, atomic_t *v)
- {
- return atomic_add_return(i, v);
- }
- __rust_helper int
- rust_helper_atomic_add_return_acquire(int i, atomic_t *v)
- {
- return atomic_add_return_acquire(i, v);
- }
- __rust_helper int
- rust_helper_atomic_add_return_release(int i, atomic_t *v)
- {
- return atomic_add_return_release(i, v);
- }
- __rust_helper int
- rust_helper_atomic_add_return_relaxed(int i, atomic_t *v)
- {
- return atomic_add_return_relaxed(i, v);
- }
- __rust_helper int
- rust_helper_atomic_fetch_add(int i, atomic_t *v)
- {
- return atomic_fetch_add(i, v);
- }
- __rust_helper int
- rust_helper_atomic_fetch_add_acquire(int i, atomic_t *v)
- {
- return atomic_fetch_add_acquire(i, v);
- }
- __rust_helper int
- rust_helper_atomic_fetch_add_release(int i, atomic_t *v)
- {
- return atomic_fetch_add_release(i, v);
- }
- __rust_helper int
- rust_helper_atomic_fetch_add_relaxed(int i, atomic_t *v)
- {
- return atomic_fetch_add_relaxed(i, v);
- }
- __rust_helper void
- rust_helper_atomic_sub(int i, atomic_t *v)
- {
- atomic_sub(i, v);
- }
- __rust_helper int
- rust_helper_atomic_sub_return(int i, atomic_t *v)
- {
- return atomic_sub_return(i, v);
- }
- __rust_helper int
- rust_helper_atomic_sub_return_acquire(int i, atomic_t *v)
- {
- return atomic_sub_return_acquire(i, v);
- }
- __rust_helper int
- rust_helper_atomic_sub_return_release(int i, atomic_t *v)
- {
- return atomic_sub_return_release(i, v);
- }
- __rust_helper int
- rust_helper_atomic_sub_return_relaxed(int i, atomic_t *v)
- {
- return atomic_sub_return_relaxed(i, v);
- }
- __rust_helper int
- rust_helper_atomic_fetch_sub(int i, atomic_t *v)
- {
- return atomic_fetch_sub(i, v);
- }
- __rust_helper int
- rust_helper_atomic_fetch_sub_acquire(int i, atomic_t *v)
- {
- return atomic_fetch_sub_acquire(i, v);
- }
- __rust_helper int
- rust_helper_atomic_fetch_sub_release(int i, atomic_t *v)
- {
- return atomic_fetch_sub_release(i, v);
- }
- __rust_helper int
- rust_helper_atomic_fetch_sub_relaxed(int i, atomic_t *v)
- {
- return atomic_fetch_sub_relaxed(i, v);
- }
- __rust_helper void
- rust_helper_atomic_inc(atomic_t *v)
- {
- atomic_inc(v);
- }
- __rust_helper int
- rust_helper_atomic_inc_return(atomic_t *v)
- {
- return atomic_inc_return(v);
- }
- __rust_helper int
- rust_helper_atomic_inc_return_acquire(atomic_t *v)
- {
- return atomic_inc_return_acquire(v);
- }
- __rust_helper int
- rust_helper_atomic_inc_return_release(atomic_t *v)
- {
- return atomic_inc_return_release(v);
- }
- __rust_helper int
- rust_helper_atomic_inc_return_relaxed(atomic_t *v)
- {
- return atomic_inc_return_relaxed(v);
- }
- __rust_helper int
- rust_helper_atomic_fetch_inc(atomic_t *v)
- {
- return atomic_fetch_inc(v);
- }
- __rust_helper int
- rust_helper_atomic_fetch_inc_acquire(atomic_t *v)
- {
- return atomic_fetch_inc_acquire(v);
- }
- __rust_helper int
- rust_helper_atomic_fetch_inc_release(atomic_t *v)
- {
- return atomic_fetch_inc_release(v);
- }
- __rust_helper int
- rust_helper_atomic_fetch_inc_relaxed(atomic_t *v)
- {
- return atomic_fetch_inc_relaxed(v);
- }
- __rust_helper void
- rust_helper_atomic_dec(atomic_t *v)
- {
- atomic_dec(v);
- }
- __rust_helper int
- rust_helper_atomic_dec_return(atomic_t *v)
- {
- return atomic_dec_return(v);
- }
- __rust_helper int
- rust_helper_atomic_dec_return_acquire(atomic_t *v)
- {
- return atomic_dec_return_acquire(v);
- }
- __rust_helper int
- rust_helper_atomic_dec_return_release(atomic_t *v)
- {
- return atomic_dec_return_release(v);
- }
- __rust_helper int
- rust_helper_atomic_dec_return_relaxed(atomic_t *v)
- {
- return atomic_dec_return_relaxed(v);
- }
- __rust_helper int
- rust_helper_atomic_fetch_dec(atomic_t *v)
- {
- return atomic_fetch_dec(v);
- }
- __rust_helper int
- rust_helper_atomic_fetch_dec_acquire(atomic_t *v)
- {
- return atomic_fetch_dec_acquire(v);
- }
- __rust_helper int
- rust_helper_atomic_fetch_dec_release(atomic_t *v)
- {
- return atomic_fetch_dec_release(v);
- }
- __rust_helper int
- rust_helper_atomic_fetch_dec_relaxed(atomic_t *v)
- {
- return atomic_fetch_dec_relaxed(v);
- }
- __rust_helper void
- rust_helper_atomic_and(int i, atomic_t *v)
- {
- atomic_and(i, v);
- }
- __rust_helper int
- rust_helper_atomic_fetch_and(int i, atomic_t *v)
- {
- return atomic_fetch_and(i, v);
- }
- __rust_helper int
- rust_helper_atomic_fetch_and_acquire(int i, atomic_t *v)
- {
- return atomic_fetch_and_acquire(i, v);
- }
- __rust_helper int
- rust_helper_atomic_fetch_and_release(int i, atomic_t *v)
- {
- return atomic_fetch_and_release(i, v);
- }
- __rust_helper int
- rust_helper_atomic_fetch_and_relaxed(int i, atomic_t *v)
- {
- return atomic_fetch_and_relaxed(i, v);
- }
- __rust_helper void
- rust_helper_atomic_andnot(int i, atomic_t *v)
- {
- atomic_andnot(i, v);
- }
- __rust_helper int
- rust_helper_atomic_fetch_andnot(int i, atomic_t *v)
- {
- return atomic_fetch_andnot(i, v);
- }
- __rust_helper int
- rust_helper_atomic_fetch_andnot_acquire(int i, atomic_t *v)
- {
- return atomic_fetch_andnot_acquire(i, v);
- }
- __rust_helper int
- rust_helper_atomic_fetch_andnot_release(int i, atomic_t *v)
- {
- return atomic_fetch_andnot_release(i, v);
- }
- __rust_helper int
- rust_helper_atomic_fetch_andnot_relaxed(int i, atomic_t *v)
- {
- return atomic_fetch_andnot_relaxed(i, v);
- }
- __rust_helper void
- rust_helper_atomic_or(int i, atomic_t *v)
- {
- atomic_or(i, v);
- }
- __rust_helper int
- rust_helper_atomic_fetch_or(int i, atomic_t *v)
- {
- return atomic_fetch_or(i, v);
- }
- __rust_helper int
- rust_helper_atomic_fetch_or_acquire(int i, atomic_t *v)
- {
- return atomic_fetch_or_acquire(i, v);
- }
- __rust_helper int
- rust_helper_atomic_fetch_or_release(int i, atomic_t *v)
- {
- return atomic_fetch_or_release(i, v);
- }
- __rust_helper int
- rust_helper_atomic_fetch_or_relaxed(int i, atomic_t *v)
- {
- return atomic_fetch_or_relaxed(i, v);
- }
- __rust_helper void
- rust_helper_atomic_xor(int i, atomic_t *v)
- {
- atomic_xor(i, v);
- }
- __rust_helper int
- rust_helper_atomic_fetch_xor(int i, atomic_t *v)
- {
- return atomic_fetch_xor(i, v);
- }
- __rust_helper int
- rust_helper_atomic_fetch_xor_acquire(int i, atomic_t *v)
- {
- return atomic_fetch_xor_acquire(i, v);
- }
- __rust_helper int
- rust_helper_atomic_fetch_xor_release(int i, atomic_t *v)
- {
- return atomic_fetch_xor_release(i, v);
- }
- __rust_helper int
- rust_helper_atomic_fetch_xor_relaxed(int i, atomic_t *v)
- {
- return atomic_fetch_xor_relaxed(i, v);
- }
- __rust_helper int
- rust_helper_atomic_xchg(atomic_t *v, int new)
- {
- return atomic_xchg(v, new);
- }
- __rust_helper int
- rust_helper_atomic_xchg_acquire(atomic_t *v, int new)
- {
- return atomic_xchg_acquire(v, new);
- }
- __rust_helper int
- rust_helper_atomic_xchg_release(atomic_t *v, int new)
- {
- return atomic_xchg_release(v, new);
- }
- __rust_helper int
- rust_helper_atomic_xchg_relaxed(atomic_t *v, int new)
- {
- return atomic_xchg_relaxed(v, new);
- }
- __rust_helper int
- rust_helper_atomic_cmpxchg(atomic_t *v, int old, int new)
- {
- return atomic_cmpxchg(v, old, new);
- }
- __rust_helper int
- rust_helper_atomic_cmpxchg_acquire(atomic_t *v, int old, int new)
- {
- return atomic_cmpxchg_acquire(v, old, new);
- }
- __rust_helper int
- rust_helper_atomic_cmpxchg_release(atomic_t *v, int old, int new)
- {
- return atomic_cmpxchg_release(v, old, new);
- }
- __rust_helper int
- rust_helper_atomic_cmpxchg_relaxed(atomic_t *v, int old, int new)
- {
- return atomic_cmpxchg_relaxed(v, old, new);
- }
- __rust_helper bool
- rust_helper_atomic_try_cmpxchg(atomic_t *v, int *old, int new)
- {
- return atomic_try_cmpxchg(v, old, new);
- }
- __rust_helper bool
- rust_helper_atomic_try_cmpxchg_acquire(atomic_t *v, int *old, int new)
- {
- return atomic_try_cmpxchg_acquire(v, old, new);
- }
- __rust_helper bool
- rust_helper_atomic_try_cmpxchg_release(atomic_t *v, int *old, int new)
- {
- return atomic_try_cmpxchg_release(v, old, new);
- }
- __rust_helper bool
- rust_helper_atomic_try_cmpxchg_relaxed(atomic_t *v, int *old, int new)
- {
- return atomic_try_cmpxchg_relaxed(v, old, new);
- }
- __rust_helper bool
- rust_helper_atomic_sub_and_test(int i, atomic_t *v)
- {
- return atomic_sub_and_test(i, v);
- }
- __rust_helper bool
- rust_helper_atomic_dec_and_test(atomic_t *v)
- {
- return atomic_dec_and_test(v);
- }
- __rust_helper bool
- rust_helper_atomic_inc_and_test(atomic_t *v)
- {
- return atomic_inc_and_test(v);
- }
- __rust_helper bool
- rust_helper_atomic_add_negative(int i, atomic_t *v)
- {
- return atomic_add_negative(i, v);
- }
- __rust_helper bool
- rust_helper_atomic_add_negative_acquire(int i, atomic_t *v)
- {
- return atomic_add_negative_acquire(i, v);
- }
- __rust_helper bool
- rust_helper_atomic_add_negative_release(int i, atomic_t *v)
- {
- return atomic_add_negative_release(i, v);
- }
- __rust_helper bool
- rust_helper_atomic_add_negative_relaxed(int i, atomic_t *v)
- {
- return atomic_add_negative_relaxed(i, v);
- }
- __rust_helper int
- rust_helper_atomic_fetch_add_unless(atomic_t *v, int a, int u)
- {
- return atomic_fetch_add_unless(v, a, u);
- }
- __rust_helper bool
- rust_helper_atomic_add_unless(atomic_t *v, int a, int u)
- {
- return atomic_add_unless(v, a, u);
- }
- __rust_helper bool
- rust_helper_atomic_inc_not_zero(atomic_t *v)
- {
- return atomic_inc_not_zero(v);
- }
- __rust_helper bool
- rust_helper_atomic_inc_unless_negative(atomic_t *v)
- {
- return atomic_inc_unless_negative(v);
- }
- __rust_helper bool
- rust_helper_atomic_dec_unless_positive(atomic_t *v)
- {
- return atomic_dec_unless_positive(v);
- }
- __rust_helper int
- rust_helper_atomic_dec_if_positive(atomic_t *v)
- {
- return atomic_dec_if_positive(v);
- }
- __rust_helper s64
- rust_helper_atomic64_read(const atomic64_t *v)
- {
- return atomic64_read(v);
- }
- __rust_helper s64
- rust_helper_atomic64_read_acquire(const atomic64_t *v)
- {
- return atomic64_read_acquire(v);
- }
- __rust_helper void
- rust_helper_atomic64_set(atomic64_t *v, s64 i)
- {
- atomic64_set(v, i);
- }
- __rust_helper void
- rust_helper_atomic64_set_release(atomic64_t *v, s64 i)
- {
- atomic64_set_release(v, i);
- }
- __rust_helper void
- rust_helper_atomic64_add(s64 i, atomic64_t *v)
- {
- atomic64_add(i, v);
- }
- __rust_helper s64
- rust_helper_atomic64_add_return(s64 i, atomic64_t *v)
- {
- return atomic64_add_return(i, v);
- }
- __rust_helper s64
- rust_helper_atomic64_add_return_acquire(s64 i, atomic64_t *v)
- {
- return atomic64_add_return_acquire(i, v);
- }
- __rust_helper s64
- rust_helper_atomic64_add_return_release(s64 i, atomic64_t *v)
- {
- return atomic64_add_return_release(i, v);
- }
- __rust_helper s64
- rust_helper_atomic64_add_return_relaxed(s64 i, atomic64_t *v)
- {
- return atomic64_add_return_relaxed(i, v);
- }
- __rust_helper s64
- rust_helper_atomic64_fetch_add(s64 i, atomic64_t *v)
- {
- return atomic64_fetch_add(i, v);
- }
- __rust_helper s64
- rust_helper_atomic64_fetch_add_acquire(s64 i, atomic64_t *v)
- {
- return atomic64_fetch_add_acquire(i, v);
- }
- __rust_helper s64
- rust_helper_atomic64_fetch_add_release(s64 i, atomic64_t *v)
- {
- return atomic64_fetch_add_release(i, v);
- }
- __rust_helper s64
- rust_helper_atomic64_fetch_add_relaxed(s64 i, atomic64_t *v)
- {
- return atomic64_fetch_add_relaxed(i, v);
- }
- __rust_helper void
- rust_helper_atomic64_sub(s64 i, atomic64_t *v)
- {
- atomic64_sub(i, v);
- }
- __rust_helper s64
- rust_helper_atomic64_sub_return(s64 i, atomic64_t *v)
- {
- return atomic64_sub_return(i, v);
- }
- __rust_helper s64
- rust_helper_atomic64_sub_return_acquire(s64 i, atomic64_t *v)
- {
- return atomic64_sub_return_acquire(i, v);
- }
- __rust_helper s64
- rust_helper_atomic64_sub_return_release(s64 i, atomic64_t *v)
- {
- return atomic64_sub_return_release(i, v);
- }
- __rust_helper s64
- rust_helper_atomic64_sub_return_relaxed(s64 i, atomic64_t *v)
- {
- return atomic64_sub_return_relaxed(i, v);
- }
- __rust_helper s64
- rust_helper_atomic64_fetch_sub(s64 i, atomic64_t *v)
- {
- return atomic64_fetch_sub(i, v);
- }
- __rust_helper s64
- rust_helper_atomic64_fetch_sub_acquire(s64 i, atomic64_t *v)
- {
- return atomic64_fetch_sub_acquire(i, v);
- }
- __rust_helper s64
- rust_helper_atomic64_fetch_sub_release(s64 i, atomic64_t *v)
- {
- return atomic64_fetch_sub_release(i, v);
- }
- __rust_helper s64
- rust_helper_atomic64_fetch_sub_relaxed(s64 i, atomic64_t *v)
- {
- return atomic64_fetch_sub_relaxed(i, v);
- }
- __rust_helper void
- rust_helper_atomic64_inc(atomic64_t *v)
- {
- atomic64_inc(v);
- }
- __rust_helper s64
- rust_helper_atomic64_inc_return(atomic64_t *v)
- {
- return atomic64_inc_return(v);
- }
- __rust_helper s64
- rust_helper_atomic64_inc_return_acquire(atomic64_t *v)
- {
- return atomic64_inc_return_acquire(v);
- }
- __rust_helper s64
- rust_helper_atomic64_inc_return_release(atomic64_t *v)
- {
- return atomic64_inc_return_release(v);
- }
- __rust_helper s64
- rust_helper_atomic64_inc_return_relaxed(atomic64_t *v)
- {
- return atomic64_inc_return_relaxed(v);
- }
- __rust_helper s64
- rust_helper_atomic64_fetch_inc(atomic64_t *v)
- {
- return atomic64_fetch_inc(v);
- }
- __rust_helper s64
- rust_helper_atomic64_fetch_inc_acquire(atomic64_t *v)
- {
- return atomic64_fetch_inc_acquire(v);
- }
- __rust_helper s64
- rust_helper_atomic64_fetch_inc_release(atomic64_t *v)
- {
- return atomic64_fetch_inc_release(v);
- }
- __rust_helper s64
- rust_helper_atomic64_fetch_inc_relaxed(atomic64_t *v)
- {
- return atomic64_fetch_inc_relaxed(v);
- }
- __rust_helper void
- rust_helper_atomic64_dec(atomic64_t *v)
- {
- atomic64_dec(v);
- }
- __rust_helper s64
- rust_helper_atomic64_dec_return(atomic64_t *v)
- {
- return atomic64_dec_return(v);
- }
- __rust_helper s64
- rust_helper_atomic64_dec_return_acquire(atomic64_t *v)
- {
- return atomic64_dec_return_acquire(v);
- }
- __rust_helper s64
- rust_helper_atomic64_dec_return_release(atomic64_t *v)
- {
- return atomic64_dec_return_release(v);
- }
- __rust_helper s64
- rust_helper_atomic64_dec_return_relaxed(atomic64_t *v)
- {
- return atomic64_dec_return_relaxed(v);
- }
- __rust_helper s64
- rust_helper_atomic64_fetch_dec(atomic64_t *v)
- {
- return atomic64_fetch_dec(v);
- }
- __rust_helper s64
- rust_helper_atomic64_fetch_dec_acquire(atomic64_t *v)
- {
- return atomic64_fetch_dec_acquire(v);
- }
- __rust_helper s64
- rust_helper_atomic64_fetch_dec_release(atomic64_t *v)
- {
- return atomic64_fetch_dec_release(v);
- }
- __rust_helper s64
- rust_helper_atomic64_fetch_dec_relaxed(atomic64_t *v)
- {
- return atomic64_fetch_dec_relaxed(v);
- }
- __rust_helper void
- rust_helper_atomic64_and(s64 i, atomic64_t *v)
- {
- atomic64_and(i, v);
- }
- __rust_helper s64
- rust_helper_atomic64_fetch_and(s64 i, atomic64_t *v)
- {
- return atomic64_fetch_and(i, v);
- }
- __rust_helper s64
- rust_helper_atomic64_fetch_and_acquire(s64 i, atomic64_t *v)
- {
- return atomic64_fetch_and_acquire(i, v);
- }
- __rust_helper s64
- rust_helper_atomic64_fetch_and_release(s64 i, atomic64_t *v)
- {
- return atomic64_fetch_and_release(i, v);
- }
- __rust_helper s64
- rust_helper_atomic64_fetch_and_relaxed(s64 i, atomic64_t *v)
- {
- return atomic64_fetch_and_relaxed(i, v);
- }
- __rust_helper void
- rust_helper_atomic64_andnot(s64 i, atomic64_t *v)
- {
- atomic64_andnot(i, v);
- }
- __rust_helper s64
- rust_helper_atomic64_fetch_andnot(s64 i, atomic64_t *v)
- {
- return atomic64_fetch_andnot(i, v);
- }
- __rust_helper s64
- rust_helper_atomic64_fetch_andnot_acquire(s64 i, atomic64_t *v)
- {
- return atomic64_fetch_andnot_acquire(i, v);
- }
- __rust_helper s64
- rust_helper_atomic64_fetch_andnot_release(s64 i, atomic64_t *v)
- {
- return atomic64_fetch_andnot_release(i, v);
- }
- __rust_helper s64
- rust_helper_atomic64_fetch_andnot_relaxed(s64 i, atomic64_t *v)
- {
- return atomic64_fetch_andnot_relaxed(i, v);
- }
- __rust_helper void
- rust_helper_atomic64_or(s64 i, atomic64_t *v)
- {
- atomic64_or(i, v);
- }
- __rust_helper s64
- rust_helper_atomic64_fetch_or(s64 i, atomic64_t *v)
- {
- return atomic64_fetch_or(i, v);
- }
- __rust_helper s64
- rust_helper_atomic64_fetch_or_acquire(s64 i, atomic64_t *v)
- {
- return atomic64_fetch_or_acquire(i, v);
- }
- __rust_helper s64
- rust_helper_atomic64_fetch_or_release(s64 i, atomic64_t *v)
- {
- return atomic64_fetch_or_release(i, v);
- }
- __rust_helper s64
- rust_helper_atomic64_fetch_or_relaxed(s64 i, atomic64_t *v)
- {
- return atomic64_fetch_or_relaxed(i, v);
- }
- __rust_helper void
- rust_helper_atomic64_xor(s64 i, atomic64_t *v)
- {
- atomic64_xor(i, v);
- }
- __rust_helper s64
- rust_helper_atomic64_fetch_xor(s64 i, atomic64_t *v)
- {
- return atomic64_fetch_xor(i, v);
- }
- __rust_helper s64
- rust_helper_atomic64_fetch_xor_acquire(s64 i, atomic64_t *v)
- {
- return atomic64_fetch_xor_acquire(i, v);
- }
- __rust_helper s64
- rust_helper_atomic64_fetch_xor_release(s64 i, atomic64_t *v)
- {
- return atomic64_fetch_xor_release(i, v);
- }
- __rust_helper s64
- rust_helper_atomic64_fetch_xor_relaxed(s64 i, atomic64_t *v)
- {
- return atomic64_fetch_xor_relaxed(i, v);
- }
- __rust_helper s64
- rust_helper_atomic64_xchg(atomic64_t *v, s64 new)
- {
- return atomic64_xchg(v, new);
- }
- __rust_helper s64
- rust_helper_atomic64_xchg_acquire(atomic64_t *v, s64 new)
- {
- return atomic64_xchg_acquire(v, new);
- }
- __rust_helper s64
- rust_helper_atomic64_xchg_release(atomic64_t *v, s64 new)
- {
- return atomic64_xchg_release(v, new);
- }
- __rust_helper s64
- rust_helper_atomic64_xchg_relaxed(atomic64_t *v, s64 new)
- {
- return atomic64_xchg_relaxed(v, new);
- }
- __rust_helper s64
- rust_helper_atomic64_cmpxchg(atomic64_t *v, s64 old, s64 new)
- {
- return atomic64_cmpxchg(v, old, new);
- }
- __rust_helper s64
- rust_helper_atomic64_cmpxchg_acquire(atomic64_t *v, s64 old, s64 new)
- {
- return atomic64_cmpxchg_acquire(v, old, new);
- }
- __rust_helper s64
- rust_helper_atomic64_cmpxchg_release(atomic64_t *v, s64 old, s64 new)
- {
- return atomic64_cmpxchg_release(v, old, new);
- }
- __rust_helper s64
- rust_helper_atomic64_cmpxchg_relaxed(atomic64_t *v, s64 old, s64 new)
- {
- return atomic64_cmpxchg_relaxed(v, old, new);
- }
- __rust_helper bool
- rust_helper_atomic64_try_cmpxchg(atomic64_t *v, s64 *old, s64 new)
- {
- return atomic64_try_cmpxchg(v, old, new);
- }
- __rust_helper bool
- rust_helper_atomic64_try_cmpxchg_acquire(atomic64_t *v, s64 *old, s64 new)
- {
- return atomic64_try_cmpxchg_acquire(v, old, new);
- }
- __rust_helper bool
- rust_helper_atomic64_try_cmpxchg_release(atomic64_t *v, s64 *old, s64 new)
- {
- return atomic64_try_cmpxchg_release(v, old, new);
- }
- __rust_helper bool
- rust_helper_atomic64_try_cmpxchg_relaxed(atomic64_t *v, s64 *old, s64 new)
- {
- return atomic64_try_cmpxchg_relaxed(v, old, new);
- }
- __rust_helper bool
- rust_helper_atomic64_sub_and_test(s64 i, atomic64_t *v)
- {
- return atomic64_sub_and_test(i, v);
- }
- __rust_helper bool
- rust_helper_atomic64_dec_and_test(atomic64_t *v)
- {
- return atomic64_dec_and_test(v);
- }
- __rust_helper bool
- rust_helper_atomic64_inc_and_test(atomic64_t *v)
- {
- return atomic64_inc_and_test(v);
- }
- __rust_helper bool
- rust_helper_atomic64_add_negative(s64 i, atomic64_t *v)
- {
- return atomic64_add_negative(i, v);
- }
- __rust_helper bool
- rust_helper_atomic64_add_negative_acquire(s64 i, atomic64_t *v)
- {
- return atomic64_add_negative_acquire(i, v);
- }
- __rust_helper bool
- rust_helper_atomic64_add_negative_release(s64 i, atomic64_t *v)
- {
- return atomic64_add_negative_release(i, v);
- }
- __rust_helper bool
- rust_helper_atomic64_add_negative_relaxed(s64 i, atomic64_t *v)
- {
- return atomic64_add_negative_relaxed(i, v);
- }
- __rust_helper s64
- rust_helper_atomic64_fetch_add_unless(atomic64_t *v, s64 a, s64 u)
- {
- return atomic64_fetch_add_unless(v, a, u);
- }
- __rust_helper bool
- rust_helper_atomic64_add_unless(atomic64_t *v, s64 a, s64 u)
- {
- return atomic64_add_unless(v, a, u);
- }
- __rust_helper bool
- rust_helper_atomic64_inc_not_zero(atomic64_t *v)
- {
- return atomic64_inc_not_zero(v);
- }
- __rust_helper bool
- rust_helper_atomic64_inc_unless_negative(atomic64_t *v)
- {
- return atomic64_inc_unless_negative(v);
- }
- __rust_helper bool
- rust_helper_atomic64_dec_unless_positive(atomic64_t *v)
- {
- return atomic64_dec_unless_positive(v);
- }
- __rust_helper s64
- rust_helper_atomic64_dec_if_positive(atomic64_t *v)
- {
- return atomic64_dec_if_positive(v);
- }
- #endif /* _RUST_ATOMIC_API_H */
- // e4edb6174dd42a265284958f00a7cea7ddb464b1
|