ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/MacOSX/config_macosx.h
Revision: 1.1
Committed: 2007-06-15T17:11:46Z (17 years, 3 months ago) by gbeauche
Content type: text/plain
Branch: MAIN
Log Message:
Enable universal builds with --enable-universal

Move arch-dependent definitions to config_macosx.h, i.e. make them compile
time instead of configure time. Support IEEE FPU emulation core only.

File Contents

# User Rev Content
1 gbeauche 1.1 /*
2     * config_macosx.h - MacOS X macros determined at compile-time
3     *
4     * $Id: sysdeps.h,v 1.9 2005/01/30 21:42:13 gbeauche Exp $
5     *
6     * Basilisk II (C) 1997-2005 Christian Bauer
7     *
8     * This program is free software; you can redistribute it and/or modify
9     * it under the terms of the GNU General Public License as published by
10     * the Free Software Foundation; either version 2 of the License, or
11     * (at your option) any later version.
12     *
13     * This program is distributed in the hope that it will be useful,
14     * but WITHOUT ANY WARRANTY; without even the implied warranty of
15     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16     * GNU General Public License for more details.
17     *
18     * You should have received a copy of the GNU General Public License
19     * along with this program; if not, write to the Free Software
20     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21     */
22    
23     /* Supported platforms are: ppc, ppc64, x86, x86_64 */
24     #if ! defined __ppc__ && ! defined __ppc64__ && ! defined __i386__ && ! defined __x86_64__
25     # error "Unsupported architecture. Please fix arch-specific macros"
26     #endif
27    
28     /* Size of data types */
29     #define SIZEOF_FLOAT 4
30     #define SIZEOF_DOUBLE 8
31     #if defined __ppc__ || defined __ppc64__
32     # if defined __LONG_DOUBLE_128__
33     # define SIZEOF_LONG_DOUBLE 16
34     # else
35     # define SIZEOF_LONG_DOUBLE 8
36     # endif
37     #else
38     # define SIZEOF_LONG_DOUBLE 16
39     #endif
40     #define SIZEOF_SHORT 2
41     #define SIZEOF_INT 4
42     #if defined __ppc64__ || defined __x86_64__
43     # define SIZEOF_LONG 8
44     #else
45     # define SIZEOF_LONG 4
46     #endif
47     #define SIZEOF_LONG_LONG 8
48     #define SIZEOF_VOID_P SIZEOF_LONG /* ILP32 or LP64 */
49    
50     /* Endian-ness of data types */
51     #if ! defined __LITTLE_ENDIAN__
52     # define WORDS_BIGENDIAN 1
53     #endif
54    
55     /* Define to the floating point format of the host machine. */
56     #define HOST_FLOAT_FORMAT IEEE_FLOAT_FORMAT
57    
58     /* Define to 1 if the host machine stores floating point numbers in memory
59     with the word containing the sign bit at the lowest address, or to 0 if it
60     does it the other way around. This macro should not be defined if the
61     ordering is the same as for multi-word integers. */
62     /* #undef HOST_FLOAT_WORDS_BIG_ENDIAN */