blob: bfbb3039fbdaf52c9c40abb45774119e5c0530cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright (c) 2023 Nokia
*/
#ifndef ODP_ARCH_SYNC_INLINES_H_
#define ODP_ARCH_SYNC_INLINES_H_
#ifdef __cplusplus
extern "C" {
#endif
static inline void _odp_mb_sync(void)
{
__sync_synchronize();
}
static inline void _odp_mb_sync_load(void)
{
__sync_synchronize();
}
static inline void _odp_mb_sync_store(void)
{
__sync_synchronize();
}
#ifdef __cplusplus
}
#endif
#endif
|