aboutsummaryrefslogtreecommitdiffstats
path: root/erts/include/internal/ethread_header_config.h.in
blob: ffd9d350e207d86c837158d8669502182ad5d8b9 (plain) (blame)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
/*
 * %CopyrightBegin%
 *
 * Copyright Ericsson AB 2004-2011. All Rights Reserved.
 *
 * The contents of this file are subject to the Erlang Public License,
 * Version 1.1, (the "License"); you may not use this file except in
 * compliance with the License. You should have received a copy of the
 * Erlang Public License along with this software. If not, it can be
 * retrieved online at http://www.erlang.org/.
 *
 * Software distributed under the License is distributed on an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
 * the License for the specific language governing rights and limitations
 * under the License.
 *
 * %CopyrightEnd%
 */

/* Define to the size of pointers */
#undef ETHR_SIZEOF_PTR

/* Define to the size of int */
#undef ETHR_SIZEOF_INT

/* Define to the size of long */
#undef ETHR_SIZEOF_LONG

/* Define to the size of long long */
#undef ETHR_SIZEOF_LONG_LONG

/* Define to the size of __int64 */
#undef ETHR_SIZEOF___INT64

/* Define to the size of __int128_t */
#undef ETHR_SIZEOF___INT128_T

/* Define if bigendian */
#undef ETHR_BIGENDIAN

/* Define if you want to disable native ethread implementations */
#undef ETHR_DISABLE_NATIVE_IMPLS

/* Define if you have win32 threads */
#undef ETHR_WIN32_THREADS

/* Define if you have pthreads */
#undef ETHR_PTHREADS

/* Define if you need the <nptl/pthread.h> header file. */
#undef ETHR_NEED_NPTL_PTHREAD_H

/* Define if you have the <pthread.h> header file. */
#undef ETHR_HAVE_PTHREAD_H

/* Define if the pthread.h header file is in pthread/mit directory. */
#undef ETHR_HAVE_MIT_PTHREAD_H

/* Define if you have the pthread_spin_lock function. */
#undef ETHR_HAVE_PTHREAD_SPIN_LOCK

/* Define if you want to force usage of pthread rwlocks */
#undef ETHR_FORCE_PTHREAD_RWLOCK

/* Define if you have the pthread_rwlockattr_setkind_np() function. */
#undef ETHR_HAVE_PTHREAD_RWLOCKATTR_SETKIND_NP

/* Define if you have the PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP rwlock
   attribute. */
#undef ETHR_HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP

/* Define if you have a linux futex implementation. */
#undef ETHR_HAVE_LINUX_FUTEX

/* Define if x86/x86_64 out of order instructions should be synchronized */
#undef ETHR_X86_OUT_OF_ORDER

/* Define if only run in Sparc TSO mode */
#undef ETHR_SPARC_TSO

/* Define if only run in Sparc PSO, or TSO mode */
#undef ETHR_SPARC_PSO

/* Define if run in Sparc RMO, PSO, or TSO mode */
#undef ETHR_SPARC_RMO

/* Define if you have __sync_add_and_fetch() for 32-bit integers */
#undef ETHR_HAVE___SYNC_ADD_AND_FETCH32

/* Define if you have __sync_add_and_fetch() for 64-bit integers */
#undef ETHR_HAVE___SYNC_ADD_AND_FETCH64

/* Define if you have __sync_fetch_and_and() for 32-bit integers */
#undef ETHR_HAVE___SYNC_FETCH_AND_AND32

/* Define if you have __sync_fetch_and_and() for 64-bit integers */
#undef ETHR_HAVE___SYNC_FETCH_AND_AND64

/* Define if you have __sync_fetch_and_or() for 32-bit integers */
#undef ETHR_HAVE___SYNC_FETCH_AND_OR32

/* Define if you have __sync_fetch_and_or() for 64-bit integers */
#undef ETHR_HAVE___SYNC_FETCH_AND_OR64

/* Define if you have __sync_val_compare_and_swap() for 32-bit integers */
#undef ETHR_HAVE___SYNC_VAL_COMPARE_AND_SWAP32

/* Define if you have __sync_val_compare_and_swap() for 64-bit integers */
#undef ETHR_HAVE___SYNC_VAL_COMPARE_AND_SWAP64

/* Define if you have __sync_val_compare_and_swap() for 128-bit integers */
#undef ETHR_HAVE___SYNC_VAL_COMPARE_AND_SWAP128

/* Define if you prefer gcc native ethread implementations */
#undef ETHR_PREFER_GCC_NATIVE_IMPLS

/* Define if you have the <sched.h> header file. */
#undef ETHR_HAVE_SCHED_H

/* Define if you have the sched_yield() function. */
#undef ETHR_HAVE_SCHED_YIELD

/* Define if you have the pthread_yield() function. */
#undef ETHR_HAVE_PTHREAD_YIELD

/* Define if pthread_yield() returns an int. */
#undef ETHR_PTHREAD_YIELD_RET_INT

/* Define if sched_yield() returns an int. */
#undef ETHR_SCHED_YIELD_RET_INT

/* Define if you use a gcc that supports -msse2 and understand sse2 specific asm statements */
#undef ETHR_GCC_HAVE_SSE2_ASM_SUPPORT

/* Define if you use a gcc that supports the double word cmpxchg instruction */
#undef ETHR_GCC_HAVE_DW_CMPXCHG_ASM_SUPPORT

/* Define if you get a register shortage with cmpxchg8b and position independent code */
#undef ETHR_CMPXCHG8B_REGISTER_SHORTAGE

/* Define if you have the pthread_rwlockattr_setkind_np() function. */
#undef ETHR_HAVE_PTHREAD_RWLOCKATTR_SETKIND_NP

/* Define if you have the PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP rwlock
   attribute. */
#undef ETHR_HAVE_PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP

/* Define if you have gcc atomic operations */
#undef ETHR_HAVE_GCC_ATOMIC_OPS

/* Define if you prefer gcc native ethread implementations */
#undef ETHR_PREFER_GCC_NATIVE_IMPLS

/* Define if you have libatomic_ops atomic operations */
#undef ETHR_HAVE_LIBATOMIC_OPS

/* Define if you prefer libatomic_ops native ethread implementations */
#undef ETHR_PREFER_LIBATOMIC_OPS_NATIVE_IMPLS

/* Define to the size of AO_t if libatomic_ops is used */
#undef ETHR_SIZEOF_AO_T

/* Define if you have _InterlockedAnd() */
#undef ETHR_HAVE__INTERLOCKEDAND

/* Define if you have _InterlockedAnd64() */
#undef ETHR_HAVE__INTERLOCKEDAND64

/* Define if you have _InterlockedCompareExchange() */
#undef ETHR_HAVE__INTERLOCKEDCOMPAREEXCHANGE

/* Define if you have _InterlockedCompareExchange64() */
#undef ETHR_HAVE__INTERLOCKEDCOMPAREEXCHANGE64

/* Define if you have _InterlockedCompareExchange64_acq() */
#undef ETHR_HAVE__INTERLOCKEDCOMPAREEXCHANGE64_ACQ

/* Define if you have _InterlockedCompareExchange64_rel() */
#undef ETHR_HAVE__INTERLOCKEDCOMPAREEXCHANGE64_REL

/* Define if you have _InterlockedCompareExchange_acq() */
#undef ETHR_HAVE__INTERLOCKEDCOMPAREEXCHANGE_ACQ

/* Define if you have _InterlockedCompareExchange_rel() */
#undef ETHR_HAVE__INTERLOCKEDCOMPAREEXCHANGE_REL

/* Define if you have _InterlockedDecrement() */
#undef ETHR_HAVE__INTERLOCKEDDECREMENT

/* Define if you have _InterlockedDecrement64() */
#undef ETHR_HAVE__INTERLOCKEDDECREMENT64

/* Define if you have _InterlockedDecrement64_rel() */
#undef ETHR_HAVE__INTERLOCKEDDECREMENT64_REL

/* Define if you have _InterlockedDecrement_rel() */
#undef ETHR_HAVE__INTERLOCKEDDECREMENT_REL

/* Define if you have _InterlockedExchange() */
#undef ETHR_HAVE__INTERLOCKEDEXCHANGE

/* Define if you have _InterlockedExchange64() */
#undef ETHR_HAVE__INTERLOCKEDEXCHANGE64

/* Define if you have _InterlockedExchangeAdd() */
#undef ETHR_HAVE__INTERLOCKEDEXCHANGEADD

/* Define if you have _InterlockedExchangeAdd64() */
#undef ETHR_HAVE__INTERLOCKEDEXCHANGEADD64

/* Define if you have _InterlockedExchangeAdd64_acq() */
#undef ETHR_HAVE__INTERLOCKEDEXCHANGEADD64_ACQ

/* Define if you have _InterlockedExchangeAdd_acq() */
#undef ETHR_HAVE__INTERLOCKEDEXCHANGEADD_ACQ

/* Define if you have _InterlockedIncrement() */
#undef ETHR_HAVE__INTERLOCKEDINCREMENT

/* Define if you have _InterlockedIncrement64() */
#undef ETHR_HAVE__INTERLOCKEDINCREMENT64

/* Define if you have _InterlockedIncrement64_acq() */
#undef ETHR_HAVE__INTERLOCKEDINCREMENT64_ACQ

/* Define if you have _InterlockedIncrement_acq() */
#undef ETHR_HAVE__INTERLOCKEDINCREMENT_ACQ

/* Define if you have _InterlockedOr() */
#undef ETHR_HAVE__INTERLOCKEDOR

/* Define if you have _InterlockedOr64() */
#undef ETHR_HAVE__INTERLOCKEDOR64

/* Define if you want to turn on extra sanity checking in the ethread library */
#undef ETHR_XCHK

/* Assumed cache-line size (in bytes) */
#undef ASSUMED_CACHE_LINE_SIZE

/* Define if you have a clock_gettime() with a monotonic clock */
#undef ETHR_HAVE_CLOCK_GETTIME_MONOTONIC

/* Define if you have a monotonic gethrtime() */
#undef ETHR_HAVE_GETHRTIME

/* Define if you have a mach clock_get_time() with a monotonic clock */
#undef ETHR_HAVE_MACH_CLOCK_GET_TIME

/* Define to the monotonic clock id to use */
#undef ETHR_MONOTONIC_CLOCK_ID