VirtualBox

source: vbox/trunk/src/libs/xpcom18a4/nsprpub/pr/include/md/_openbsd.cfg@ 21017

Last change on this file since 21017 was 1, checked in by vboxsync, 55 years ago

import

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

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette