- add sources.
[platform/framework/web/crosswalk.git] / src / third_party / npapi / npspy / extern / nspr / md / _openbsd.cfg
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */\r
2 /* \r
3  * The contents of this file are subject to the Mozilla Public\r
4  * License Version 1.1 (the "License"); you may not use this file\r
5  * except in compliance with the License. You may obtain a copy of\r
6  * the License at http://www.mozilla.org/MPL/\r
7  * \r
8  * Software distributed under the License is distributed on an "AS\r
9  * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or\r
10  * implied. See the License for the specific language governing\r
11  * rights and limitations under the License.\r
12  * \r
13  * The Original Code is the Netscape Portable Runtime (NSPR).\r
14  * \r
15  * The Initial Developer of the Original Code is Netscape\r
16  * Communications Corporation.  Portions created by Netscape are \r
17  * Copyright (C) 1998-2000 Netscape Communications Corporation.  All\r
18  * Rights Reserved.\r
19  * \r
20  * Contributor(s):\r
21  * \r
22  * Alternatively, the contents of this file may be used under the\r
23  * terms of the GNU General Public License Version 2 or later (the\r
24  * "GPL"), in which case the provisions of the GPL are applicable \r
25  * instead of those above.  If you wish to allow use of your \r
26  * version of this file only under the terms of the GPL and not to\r
27  * allow others to use your version of this file under the MPL,\r
28  * indicate your decision by deleting the provisions above and\r
29  * replace them with the notice and other provisions required by\r
30  * the GPL.  If you do not delete the provisions above, a recipient\r
31  * may use your version of this file under either the MPL or the\r
32  * GPL.\r
33  */\r
34 \r
35 #ifndef nspr_cpucfg___\r
36 #define nspr_cpucfg___\r
37 \r
38 #ifndef XP_UNIX\r
39 #define XP_UNIX\r
40 #endif\r
41 \r
42 #ifndef OPENBSD\r
43 #define OPENBSD\r
44 #endif\r
45 \r
46 #define PR_AF_INET6 24  /* same as AF_INET6 */\r
47 \r
48 #if defined(__i386__)\r
49 \r
50 #define IS_LITTLE_ENDIAN 1\r
51 #undef  IS_BIG_ENDIAN\r
52 #define HAVE_LONG_LONG\r
53 #undef  HAVE_ALIGNED_DOUBLES\r
54 #undef  HAVE_ALIGNED_LONGLONGS\r
55 \r
56 #define PR_BYTES_PER_BYTE   1\r
57 #define PR_BYTES_PER_SHORT  2\r
58 #define PR_BYTES_PER_INT    4\r
59 #define PR_BYTES_PER_INT64  8\r
60 #define PR_BYTES_PER_LONG   4\r
61 #define PR_BYTES_PER_FLOAT  4\r
62 #define PR_BYTES_PER_DOUBLE 8\r
63 #define PR_BYTES_PER_WORD   4\r
64 #define PR_BYTES_PER_DWORD  8\r
65 #define PR_BYTES_PER_WORD_LOG2   2\r
66 #define PR_BYTES_PER_DWORD_LOG2  3\r
67 \r
68 #define PR_BITS_PER_BYTE    8\r
69 #define PR_BITS_PER_SHORT   16\r
70 #define PR_BITS_PER_INT     32\r
71 #define PR_BITS_PER_INT64   64\r
72 #define PR_BITS_PER_LONG    32\r
73 #define PR_BITS_PER_FLOAT   32\r
74 #define PR_BITS_PER_DOUBLE  64\r
75 #define PR_BITS_PER_WORD    32\r
76 \r
77 #define PR_BITS_PER_BYTE_LOG2   3\r
78 #define PR_BITS_PER_SHORT_LOG2  4\r
79 #define PR_BITS_PER_INT_LOG2    5\r
80 #define PR_BITS_PER_INT64_LOG2  6\r
81 #define PR_BITS_PER_LONG_LOG2   5\r
82 #define PR_BITS_PER_FLOAT_LOG2  5\r
83 #define PR_BITS_PER_DOUBLE_LOG2 6\r
84 #define PR_BITS_PER_WORD_LOG2   5\r
85 \r
86 #define PR_ALIGN_OF_SHORT   2\r
87 #define PR_ALIGN_OF_INT     4\r
88 #define PR_ALIGN_OF_LONG    4\r
89 #define PR_ALIGN_OF_INT64   4\r
90 #define PR_ALIGN_OF_FLOAT   4\r
91 #define PR_ALIGN_OF_DOUBLE  4\r
92 #define PR_ALIGN_OF_POINTER 4\r
93 \r
94 #elif defined(__amd64__)\r
95 \r
96 #define IS_LITTLE_ENDIAN 1\r
97 #undef  IS_BIG_ENDIAN\r
98 #define IS_64\r
99 \r
100 #define PR_BYTES_PER_BYTE   1\r
101 #define PR_BYTES_PER_SHORT  2\r
102 #define PR_BYTES_PER_INT    4\r
103 #define PR_BYTES_PER_INT64  8\r
104 #define PR_BYTES_PER_LONG   8\r
105 #define PR_BYTES_PER_FLOAT  4\r
106 #define PR_BYTES_PER_DOUBLE 8\r
107 #define PR_BYTES_PER_WORD   8\r
108 #define PR_BYTES_PER_DWORD  8\r
109 \r
110 #define PR_BITS_PER_BYTE    8\r
111 #define PR_BITS_PER_SHORT   16\r
112 #define PR_BITS_PER_INT     32\r
113 #define PR_BITS_PER_INT64   64\r
114 #define PR_BITS_PER_LONG    64\r
115 #define PR_BITS_PER_FLOAT   32\r
116 #define PR_BITS_PER_DOUBLE  64\r
117 #define PR_BITS_PER_WORD    64\r
118 \r
119 #define PR_BITS_PER_BYTE_LOG2   3\r
120 #define PR_BITS_PER_SHORT_LOG2  4\r
121 #define PR_BITS_PER_INT_LOG2    5\r
122 #define PR_BITS_PER_INT64_LOG2  6\r
123 #define PR_BITS_PER_LONG_LOG2   6\r
124 #define PR_BITS_PER_FLOAT_LOG2  5\r
125 #define PR_BITS_PER_DOUBLE_LOG2 6\r
126 #define PR_BITS_PER_WORD_LOG2   6\r
127 \r
128 #define PR_ALIGN_OF_SHORT   2\r
129 #define PR_ALIGN_OF_INT     4\r
130 #define PR_ALIGN_OF_LONG    8\r
131 #define PR_ALIGN_OF_INT64   8\r
132 #define PR_ALIGN_OF_FLOAT   4\r
133 #define PR_ALIGN_OF_DOUBLE  8\r
134 #define PR_ALIGN_OF_POINTER 8\r
135 #define PR_ALIGN_OF_WORD    8\r
136 \r
137 #define PR_BYTES_PER_WORD_LOG2  3\r
138 #define PR_BYTES_PER_DWORD_LOG2 3\r
139 \r
140 #define HAVE_LONG_LONG\r
141 #define HAVE_ALIGNED_DOUBLES\r
142 #define HAVE_ALIGNED_LONGLONGS\r
143 \r
144 #elif defined(__sparc_v9__)\r
145 \r
146 #undef  IS_LITTLE_ENDIAN\r
147 #define IS_BIG_ENDIAN 1\r
148 #define HAVE_LONG_LONG\r
149 #define HAVE_ALIGNED_DOUBLES\r
150 #define HAVE_ALIGNED_LONGLONGS\r
151 #define IS_64\r
152 \r
153 #define PR_BYTES_PER_BYTE   1\r
154 #define PR_BYTES_PER_SHORT  2\r
155 #define PR_BYTES_PER_INT    4\r
156 #define PR_BYTES_PER_INT64  8\r
157 #define PR_BYTES_PER_LONG   8\r
158 #define PR_BYTES_PER_FLOAT  4\r
159 #define PR_BYTES_PER_DOUBLE 8\r
160 #define PR_BYTES_PER_WORD   8\r
161 #define PR_BYTES_PER_DWORD  8\r
162 \r
163 #define PR_BITS_PER_BYTE    8\r
164 #define PR_BITS_PER_SHORT   16\r
165 #define PR_BITS_PER_INT     32\r
166 #define PR_BITS_PER_INT64   64\r
167 #define PR_BITS_PER_LONG    64\r
168 #define PR_BITS_PER_FLOAT   32\r
169 #define PR_BITS_PER_DOUBLE  64\r
170 #define PR_BITS_PER_WORD    64\r
171 \r
172 #define PR_BITS_PER_BYTE_LOG2   3\r
173 #define PR_BITS_PER_SHORT_LOG2  4\r
174 #define PR_BITS_PER_INT_LOG2    5\r
175 #define PR_BITS_PER_INT64_LOG2  6\r
176 #define PR_BITS_PER_LONG_LOG2   6\r
177 #define PR_BITS_PER_FLOAT_LOG2  5\r
178 #define PR_BITS_PER_DOUBLE_LOG2 6\r
179 #define PR_BITS_PER_WORD_LOG2   6\r
180 \r
181 #define PR_ALIGN_OF_SHORT   2\r
182 #define PR_ALIGN_OF_INT     4\r
183 #define PR_ALIGN_OF_LONG    8\r
184 #define PR_ALIGN_OF_INT64   8\r
185 #define PR_ALIGN_OF_FLOAT   4\r
186 #define PR_ALIGN_OF_DOUBLE  8\r
187 #define PR_ALIGN_OF_POINTER 8\r
188 \r
189 #define PR_BYTES_PER_WORD_LOG2  3\r
190 #define PR_BYTES_PER_DWORD_LOG2 3\r
191 \r
192 #elif defined(__sparc__)\r
193 \r
194 #undef IS_LITTLE_ENDIAN\r
195 #define  IS_BIG_ENDIAN 1\r
196 #define HAVE_LONG_LONG\r
197 #define  HAVE_ALIGNED_DOUBLES\r
198 #define  HAVE_ALIGNED_LONGLONGS\r
199 \r
200 #define PR_BYTES_PER_BYTE   1\r
201 #define PR_BYTES_PER_SHORT  2\r
202 #define PR_BYTES_PER_INT    4\r
203 #define PR_BYTES_PER_INT64  8\r
204 #define PR_BYTES_PER_LONG   4\r
205 #define PR_BYTES_PER_FLOAT  4\r
206 #define PR_BYTES_PER_DOUBLE 8\r
207 #define PR_BYTES_PER_WORD   4\r
208 #define PR_BYTES_PER_DWORD  8\r
209 #define PR_BYTES_PER_WORD_LOG2   2\r
210 #define PR_BYTES_PER_DWORD_LOG2  3\r
211 \r
212 #define PR_BITS_PER_BYTE    8\r
213 #define PR_BITS_PER_SHORT   16\r
214 #define PR_BITS_PER_INT     32\r
215 #define PR_BITS_PER_INT64   64\r
216 #define PR_BITS_PER_LONG    32\r
217 #define PR_BITS_PER_FLOAT   32\r
218 #define PR_BITS_PER_DOUBLE  64\r
219 #define PR_BITS_PER_WORD    32\r
220 \r
221 #define PR_BITS_PER_BYTE_LOG2   3\r
222 #define PR_BITS_PER_SHORT_LOG2  4\r
223 #define PR_BITS_PER_INT_LOG2    5\r
224 #define PR_BITS_PER_INT64_LOG2  6\r
225 #define PR_BITS_PER_LONG_LOG2   5\r
226 #define PR_BITS_PER_FLOAT_LOG2  5\r
227 #define PR_BITS_PER_DOUBLE_LOG2 6\r
228 #define PR_BITS_PER_WORD_LOG2   5\r
229 \r
230 #define PR_ALIGN_OF_SHORT   2\r
231 #define PR_ALIGN_OF_INT     4\r
232 #define PR_ALIGN_OF_LONG    4\r
233 #define PR_ALIGN_OF_INT64   8\r
234 #define PR_ALIGN_OF_FLOAT   4\r
235 #define PR_ALIGN_OF_DOUBLE  8\r
236 #define PR_ALIGN_OF_POINTER 4\r
237 \r
238 #elif defined(__alpha__)\r
239 #define IS_LITTLE_ENDIAN 1\r
240 #undef  IS_BIG_ENDIAN\r
241 #define HAVE_LONG_LONG\r
242 #define HAVE_ALIGNED_DOUBLES\r
243 #define HAVE_ALIGNED_LONGLONGS\r
244 #define IS_64\r
245 \r
246 #define PR_BYTES_PER_BYTE   1\r
247 #define PR_BYTES_PER_SHORT  2\r
248 #define PR_BYTES_PER_INT    4\r
249 #define PR_BYTES_PER_INT64  8\r
250 #define PR_BYTES_PER_LONG   8\r
251 #define PR_BYTES_PER_FLOAT  4\r
252 #define PR_BYTES_PER_DOUBLE 8\r
253 #define PR_BYTES_PER_WORD   8\r
254 #define PR_BYTES_PER_DWORD  8\r
255 \r
256 #define PR_BITS_PER_BYTE    8\r
257 #define PR_BITS_PER_SHORT   16\r
258 #define PR_BITS_PER_INT     32\r
259 #define PR_BITS_PER_INT64   64\r
260 #define PR_BITS_PER_LONG    64\r
261 #define PR_BITS_PER_FLOAT   32\r
262 #define PR_BITS_PER_DOUBLE  64\r
263 #define PR_BITS_PER_WORD    64\r
264 \r
265 #define PR_BITS_PER_BYTE_LOG2   3\r
266 #define PR_BITS_PER_SHORT_LOG2  4\r
267 #define PR_BITS_PER_INT_LOG2    5\r
268 #define PR_BITS_PER_INT64_LOG2  6\r
269 #define PR_BITS_PER_LONG_LOG2   6\r
270 #define PR_BITS_PER_FLOAT_LOG2  5\r
271 #define PR_BITS_PER_DOUBLE_LOG2 6\r
272 #define PR_BITS_PER_WORD_LOG2   6\r
273 \r
274 #define PR_ALIGN_OF_SHORT   2\r
275 #define PR_ALIGN_OF_INT     4\r
276 #define PR_ALIGN_OF_LONG    8\r
277 #define PR_ALIGN_OF_INT64   8\r
278 #define PR_ALIGN_OF_FLOAT   4\r
279 #define PR_ALIGN_OF_DOUBLE  8\r
280 #define PR_ALIGN_OF_POINTER 8\r
281 \r
282 #define PR_BYTES_PER_WORD_LOG2  3\r
283 #define PR_BYTES_PER_DWORD_LOG2 3\r
284 \r
285 #elif defined(__powerpc__) || defined(__m68k__)\r
286 \r
287 #undef  IS_LITTLE_ENDIAN\r
288 #define IS_BIG_ENDIAN    1\r
289 #define HAVE_LONG_LONG\r
290 #undef  HAVE_ALIGNED_DOUBLES\r
291 #undef  HAVE_ALIGNED_LONGLONGS\r
292 \r
293 #define PR_BYTES_PER_BYTE   1\r
294 #define PR_BYTES_PER_SHORT  2\r
295 #define PR_BYTES_PER_INT    4\r
296 #define PR_BYTES_PER_INT64  8\r
297 #define PR_BYTES_PER_LONG   4\r
298 #define PR_BYTES_PER_FLOAT  4\r
299 #define PR_BYTES_PER_DOUBLE 8\r
300 #define PR_BYTES_PER_WORD   4\r
301 #define PR_BYTES_PER_DWORD  8\r
302 \r
303 #define PR_BITS_PER_BYTE    8\r
304 #define PR_BITS_PER_SHORT   16\r
305 #define PR_BITS_PER_INT     32\r
306 #define PR_BITS_PER_INT64   64\r
307 #define PR_BITS_PER_LONG    32\r
308 #define PR_BITS_PER_FLOAT   32\r
309 #define PR_BITS_PER_DOUBLE  64\r
310 #define PR_BITS_PER_WORD    32\r
311 \r
312 #define PR_BITS_PER_BYTE_LOG2   3\r
313 #define PR_BITS_PER_SHORT_LOG2  4\r
314 #define PR_BITS_PER_INT_LOG2    5\r
315 #define PR_BITS_PER_INT64_LOG2  6\r
316 #define PR_BITS_PER_LONG_LOG2   5\r
317 #define PR_BITS_PER_FLOAT_LOG2  5\r
318 #define PR_BITS_PER_DOUBLE_LOG2 6\r
319 #define PR_BITS_PER_WORD_LOG2   5\r
320 \r
321 #define PR_ALIGN_OF_SHORT   2\r
322 #define PR_ALIGN_OF_INT     4\r
323 #define PR_ALIGN_OF_LONG    4\r
324 #define PR_ALIGN_OF_INT64   4\r
325 #define PR_ALIGN_OF_FLOAT   4\r
326 #define PR_ALIGN_OF_DOUBLE  4\r
327 #define PR_ALIGN_OF_POINTER 4\r
328 \r
329 #define PR_BYTES_PER_WORD_LOG2   2\r
330 #define PR_BYTES_PER_DWORD_LOG2  3\r
331 \r
332 #else\r
333 \r
334 #error Must define constants for type sizes here.\r
335 \r
336 #endif\r
337 \r
338 \r
339 #ifndef NO_NSPR_10_SUPPORT\r
340 \r
341 #define BYTES_PER_BYTE          PR_BYTES_PER_BYTE\r
342 #define BYTES_PER_SHORT         PR_BYTES_PER_SHORT\r
343 #define BYTES_PER_INT           PR_BYTES_PER_INT\r
344 #define BYTES_PER_INT64         PR_BYTES_PER_INT64\r
345 #define BYTES_PER_LONG          PR_BYTES_PER_LONG\r
346 #define BYTES_PER_FLOAT         PR_BYTES_PER_FLOAT\r
347 #define BYTES_PER_DOUBLE        PR_BYTES_PER_DOUBLE\r
348 #define BYTES_PER_WORD          PR_BYTES_PER_WORD\r
349 #define BYTES_PER_DWORD         PR_BYTES_PER_DWORD\r
350 \r
351 #define BITS_PER_BYTE           PR_BITS_PER_BYTE\r
352 #define BITS_PER_SHORT          PR_BITS_PER_SHORT\r
353 #define BITS_PER_INT            PR_BITS_PER_INT\r
354 #define BITS_PER_INT64          PR_BITS_PER_INT64\r
355 #define BITS_PER_LONG           PR_BITS_PER_LONG\r
356 #define BITS_PER_FLOAT          PR_BITS_PER_FLOAT\r
357 #define BITS_PER_DOUBLE         PR_BITS_PER_DOUBLE\r
358 #define BITS_PER_WORD           PR_BITS_PER_WORD\r
359 \r
360 #define BITS_PER_BYTE_LOG2      PR_BITS_PER_BYTE_LOG2\r
361 #define BITS_PER_SHORT_LOG2     PR_BITS_PER_SHORT_LOG2\r
362 #define BITS_PER_INT_LOG2       PR_BITS_PER_INT_LOG2\r
363 #define BITS_PER_INT64_LOG2     PR_BITS_PER_INT64_LOG2\r
364 #define BITS_PER_LONG_LOG2      PR_BITS_PER_LONG_LOG2\r
365 #define BITS_PER_FLOAT_LOG2     PR_BITS_PER_FLOAT_LOG2\r
366 #define BITS_PER_DOUBLE_LOG2    PR_BITS_PER_DOUBLE_LOG2\r
367 #define BITS_PER_WORD_LOG2      PR_BITS_PER_WORD_LOG2\r
368 \r
369 #define ALIGN_OF_SHORT          PR_ALIGN_OF_SHORT\r
370 #define ALIGN_OF_INT            PR_ALIGN_OF_INT\r
371 #define ALIGN_OF_LONG           PR_ALIGN_OF_LONG\r
372 #define ALIGN_OF_INT64          PR_ALIGN_OF_INT64\r
373 #define ALIGN_OF_FLOAT          PR_ALIGN_OF_FLOAT\r
374 #define ALIGN_OF_DOUBLE         PR_ALIGN_OF_DOUBLE\r
375 #define ALIGN_OF_POINTER        PR_ALIGN_OF_POINTER\r
376 #define ALIGN_OF_WORD           PR_ALIGN_OF_WORD\r
377 \r
378 #define BYTES_PER_WORD_LOG2     PR_BYTES_PER_WORD_LOG2\r
379 #define BYTES_PER_DWORD_LOG2    PR_BYTES_PER_DWORD_LOG2\r
380 #define WORDS_PER_DWORD_LOG2    PR_WORDS_PER_DWORD_LOG2\r
381 \r
382 #endif /* NO_NSPR_10_SUPPORT */\r
383 \r
384 #endif /* nspr_cpucfg___ */\r