|
8 | 8 |
|
9 | 9 | #include <libspirv/spirv.h> |
10 | 10 |
|
11 | | -_CLC_OVERLOAD _CLC_DECL int __spirv_AtomicIDecrement(local int *p, int scope, |
12 | | - int semantics) { |
| 11 | +_CLC_OVERLOAD _CLC_DEF int __spirv_AtomicIDecrement(local int *p, int scope, |
| 12 | + int semantics) { |
13 | 13 | return __sync_fetch_and_sub(p, (int)1); |
14 | 14 | } |
15 | 15 |
|
16 | | -_CLC_OVERLOAD _CLC_DECL int __spirv_AtomicIDecrement(global int *p, int scope, |
17 | | - int semantics) { |
| 16 | +_CLC_OVERLOAD _CLC_DEF int __spirv_AtomicIDecrement(global int *p, int scope, |
| 17 | + int semantics) { |
18 | 18 | return __sync_fetch_and_sub(p, (int)1); |
19 | 19 | } |
20 | 20 |
|
21 | | -_CLC_OVERLOAD _CLC_DECL uint __spirv_AtomicIDecrement(local uint *p, int scope, |
22 | | - int semantics) { |
| 21 | +_CLC_OVERLOAD _CLC_DEF uint __spirv_AtomicIDecrement(local uint *p, int scope, |
| 22 | + int semantics) { |
23 | 23 | return __sync_fetch_and_sub(p, (uint)1); |
24 | 24 | } |
25 | 25 |
|
26 | | -_CLC_OVERLOAD _CLC_DECL uint __spirv_AtomicIDecrement(global uint *p, int scope, |
27 | | - int semantics) { |
| 26 | +_CLC_OVERLOAD _CLC_DEF uint __spirv_AtomicIDecrement(global uint *p, int scope, |
| 27 | + int semantics) { |
28 | 28 | return __sync_fetch_and_sub(p, (uint)1); |
29 | 29 | } |
30 | 30 |
|
31 | 31 | #ifdef cl_khr_int64_base_atomics |
32 | | -_CLC_OVERLOAD _CLC_DECL long __spirv_AtomicIDecrement(local long *p, int scope, |
33 | | - int semantics) { |
| 32 | +_CLC_OVERLOAD _CLC_DEF long __spirv_AtomicIDecrement(local long *p, int scope, |
| 33 | + int semantics) { |
34 | 34 | return __sync_fetch_and_sub(p, (long)1); |
35 | 35 | } |
36 | 36 |
|
37 | | -_CLC_OVERLOAD _CLC_DECL long __spirv_AtomicIDecrement(global long *p, int scope, |
38 | | - int semantics) { |
| 37 | +_CLC_OVERLOAD _CLC_DEF long __spirv_AtomicIDecrement(global long *p, int scope, |
| 38 | + int semantics) { |
39 | 39 | return __sync_fetch_and_sub(p, (long)1); |
40 | 40 | } |
41 | 41 |
|
42 | | -_CLC_OVERLOAD _CLC_DECL ulong __spirv_AtomicIDecrement(local ulong *p, |
43 | | - int scope, |
44 | | - int semantics) { |
| 42 | +_CLC_OVERLOAD _CLC_DEF ulong __spirv_AtomicIDecrement(local ulong *p, int scope, |
| 43 | + int semantics) { |
45 | 44 | return __sync_fetch_and_sub(p, (ulong)1); |
46 | 45 | } |
47 | 46 |
|
48 | | -_CLC_OVERLOAD _CLC_DECL ulong __spirv_AtomicIDecrement(global ulong *p, |
49 | | - int scope, |
50 | | - int semantics) { |
| 47 | +_CLC_OVERLOAD _CLC_DEF ulong __spirv_AtomicIDecrement(global ulong *p, |
| 48 | + int scope, |
| 49 | + int semantics) { |
51 | 50 | return __sync_fetch_and_sub(p, (ulong)1); |
52 | 51 | } |
53 | 52 | #endif |
0 commit comments