Implement env_atomic64_dec_return
Signed-off-by: Jan Musial <jan.musial@huawei.com> Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
This commit is contained in:
parent
690cebae65
commit
4f43829e91
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright(c) 2012-2022 Intel Corporation
|
* Copyright(c) 2012-2022 Intel Corporation
|
||||||
* Copyright(c) 2024 Huawei Technologies
|
* Copyright(c) 2024-2025 Huawei Technologies
|
||||||
* SPDX-License-Identifier: BSD-3-Clause
|
* SPDX-License-Identifier: BSD-3-Clause
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -407,6 +407,11 @@ static inline u64 env_atomic64_inc_return(env_atomic64 *a)
|
|||||||
return atomic64_inc_return(a);
|
return atomic64_inc_return(a);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline u64 env_atomic64_dec_return(env_atomic64 *a)
|
||||||
|
{
|
||||||
|
return atomic64_dec_return(a);
|
||||||
|
}
|
||||||
|
|
||||||
static inline u64 env_atomic64_cmpxchg(atomic64_t *a, u64 old, u64 new)
|
static inline u64 env_atomic64_cmpxchg(atomic64_t *a, u64 old, u64 new)
|
||||||
{
|
{
|
||||||
return atomic64_cmpxchg(a, old, new);
|
return atomic64_cmpxchg(a, old, new);
|
||||||
|
Loading…
Reference in New Issue
Block a user