]>
Commit | Line | Data |
---|---|---|
91447636 A |
1 | /* |
2 | * Copyright (c) 2000-2004 Apple Computer, Inc. All rights reserved. | |
3 | * | |
4 | * @APPLE_LICENSE_HEADER_START@ | |
5 | * | |
ff6e181a A |
6 | * This file contains Original Code and/or Modifications of Original Code |
7 | * as defined in and that are subject to the Apple Public Source License | |
8 | * Version 2.0 (the 'License'). You may not use this file except in | |
9 | * compliance with the License. Please obtain a copy of the License at | |
10 | * http://www.opensource.apple.com/apsl/ and read it before using this | |
11 | * file. | |
91447636 | 12 | * |
ff6e181a A |
13 | * The Original Code and all software distributed under the License are |
14 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER | |
91447636 A |
15 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, |
16 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
ff6e181a A |
17 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. |
18 | * Please see the License for the specific language governing rights and | |
19 | * limitations under the License. | |
91447636 A |
20 | * |
21 | * @APPLE_LICENSE_HEADER_END@ | |
22 | */ | |
23 | ||
1c79356b A |
24 | /* |
25 | * Copyright (c) 1995 NeXT Computer, Inc. All rights reserved. | |
9bccf70c | 26 | * Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved. |
1c79356b A |
27 | * |
28 | * @APPLE_LICENSE_HEADER_START@ | |
29 | * | |
ff6e181a A |
30 | * This file contains Original Code and/or Modifications of Original Code |
31 | * as defined in and that are subject to the Apple Public Source License | |
32 | * Version 2.0 (the 'License'). You may not use this file except in | |
33 | * compliance with the License. Please obtain a copy of the License at | |
34 | * http://www.opensource.apple.com/apsl/ and read it before using this | |
35 | * file. | |
1c79356b | 36 | * |
ff6e181a A |
37 | * The Original Code and all software distributed under the License are |
38 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER | |
1c79356b A |
39 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, |
40 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
ff6e181a A |
41 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. |
42 | * Please see the License for the specific language governing rights and | |
43 | * limitations under the License. | |
1c79356b A |
44 | * |
45 | * @APPLE_LICENSE_HEADER_END@ | |
46 | */ | |
47 | /* | |
48 | * Copyright (c) 1987, 1991, 1993 | |
49 | * The Regents of the University of California. All rights reserved. | |
50 | * | |
51 | * Redistribution and use in source and binary forms, with or without | |
52 | * modification, are permitted provided that the following conditions | |
53 | * are met: | |
54 | * 1. Redistributions of source code must retain the above copyright | |
55 | * notice, this list of conditions and the following disclaimer. | |
56 | * 2. Redistributions in binary form must reproduce the above copyright | |
57 | * notice, this list of conditions and the following disclaimer in the | |
58 | * documentation and/or other materials provided with the distribution. | |
59 | * 3. All advertising materials mentioning features or use of this software | |
60 | * must display the following acknowledgement: | |
61 | * This product includes software developed by the University of | |
62 | * California, Berkeley and its contributors. | |
63 | * 4. Neither the name of the University nor the names of its contributors | |
64 | * may be used to endorse or promote products derived from this software | |
65 | * without specific prior written permission. | |
66 | * | |
67 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | |
68 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | |
69 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | |
70 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | |
71 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | |
72 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | |
73 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |
74 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | |
75 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | |
76 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |
77 | * SUCH DAMAGE. | |
78 | * | |
79 | * @(#)endian.h 8.1 (Berkeley) 6/10/93 | |
80 | */ | |
81 | ||
82 | #ifndef _PPC_ENDIAN_H_ | |
83 | #define _PPC_ENDIAN_H_ | |
84 | ||
85 | /* | |
86 | * Define the order of 32-bit words in 64-bit words. | |
87 | */ | |
88 | #define _QUAD_HIGHWORD 0 | |
89 | #define _QUAD_LOWWORD 1 | |
90 | ||
1c79356b A |
91 | /* |
92 | * Definitions for byte order, according to byte significance from low | |
93 | * address to high. | |
94 | */ | |
91447636 A |
95 | #define __DARWIN_LITTLE_ENDIAN 1234 /* LSB first: i386, vax */ |
96 | #define __DARWIN_BIG_ENDIAN 4321 /* MSB first: 68000, ibm, net, ppc */ | |
97 | #define __DARWIN_PDP_ENDIAN 3412 /* LSB first in word, MSW first in long */ | |
1c79356b | 98 | |
91447636 | 99 | #define __DARWIN_BYTE_ORDER __DARWIN_BIG_ENDIAN |
1c79356b | 100 | |
91447636 | 101 | #if defined(KERNEL) || !defined(_POSIX_C_SOURCE) |
1c79356b | 102 | |
91447636 A |
103 | #define LITTLE_ENDIAN __DARWIN_LITTLE_ENDIAN |
104 | #define BIG_ENDIAN __DARWIN_BIG_ENDIAN | |
105 | #define PDP_ENDIAN __DARWIN_PDP_ENDIAN | |
1c79356b | 106 | |
91447636 | 107 | #define BYTE_ORDER __DARWIN_BYTE_ORDER |
1c79356b | 108 | |
91447636 | 109 | #include <sys/_endian.h> |
1c79356b | 110 | |
91447636 | 111 | #endif /* defined(KERNEL) || !defined(_POSIX_C_SOURCE) */ |
1c79356b | 112 | #endif /* !_PPC_ENDIAN_H_ */ |