Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
host.h
Go to the documentation of this file.
00001 /*
00002 
00003   Copyright (C) 2000, 2001 Silicon Graphics, Inc.  All Rights Reserved.
00004 
00005   This program is free software; you can redistribute it and/or modify it
00006   under the terms of version 2 of the GNU General Public License as
00007   published by the Free Software Foundation.
00008 
00009   This program is distributed in the hope that it would be useful, but
00010   WITHOUT ANY WARRANTY; without even the implied warranty of
00011   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
00012 
00013   Further, this software is distributed without any warranty that it is
00014   free of the rightful claim of any third person regarding infringement 
00015   or the like.  Any license provided herein, whether implied or 
00016   otherwise, applies only to this software file.  Patent licenses, if 
00017   any, provided herein do not apply to combinations of this program with 
00018   other software, or any other product whatsoever.  
00019 
00020   You should have received a copy of the GNU General Public License along
00021   with this program; if not, write the Free Software Foundation, Inc., 59
00022   Temple Place - Suite 330, Boston MA 02111-1307, USA.
00023 
00024   Contact information:  Silicon Graphics, Inc., 1600 Amphitheatre Pky,
00025   Mountain View, CA 94043, or:
00026 
00027   http://www.sgi.com
00028 
00029   For further information regarding this notice, see:
00030 
00031   http://oss.sgi.com/projects/GenInfo/NoticeExplan
00032 
00033 */
00034 
00035 
00036 
00037 /* USMID:  "\n@(#)5.0_pl/headers/host.h 5.5     10/14/99 12:53:57\n" */
00038 
00039 /* This module is for host specific information.  All uses of _HOST32 and */
00040 /* _HOST64 and any other host defines should only be referenced in this   */
00041 /* module.                                                                */
00042 
00043 
00044 # if defined(_HOST_OS_LINUX)
00045    typedef      long double             ldouble;
00046 # elif defined(_HOST_OS_SOLARIS) || (defined(_HOST_OS_IRIX) || defined(_HOST_OS_LINUX))
00047    typedef      double                  ldouble;
00048 # else
00049    typedef      long double             ldouble;
00050 # endif
00051 
00052 
00053 # if defined(_HOST32) && defined(_TARGET64)
00054   typedef       long long               long_type;
00055   typedef       double                  float_type;
00056 # else
00057 #   if defined(_HOST_OS_MAX)
00058       typedef   double                  float_type;
00059 #   else
00060       typedef   float                   float_type;
00061 #   endif
00062   typedef       long                    long_type;
00063 # endif
00064 
00065 /* Define the host machines 64 bit integer type */
00066 
00067 # if defined(_HOST32)
00068   typedef       long long               long64;
00069 # else
00070   typedef       long                    long64;
00071 # endif
00072 
00073 
00074 typedef unsigned int                    boolean;
00075 typedef unsigned int                    Uint;
00076 typedef unsigned long                   Ulong;
00077 
00078 
00079 # include <stdlib.h>            /* Needed for getenv.      */
00080 # include <ctype.h>
00081 # include <stdio.h>
00082 # include <string.h>
00083 # include <limits.h>
00084 # include <unistd.h>
00085 # include <sys/param.h>   
00086 
00087 # if defined(_HOST_OS_UNICOS) || defined(_HOST_OS_MAX) || (defined(_HOST_OS_IRIX) || defined(_HOST_OS_LINUX))
00088 # include <math.h>
00089 
00090 # if !(defined(_HOST_OS_IRIX) || defined(_HOST_OS_LINUX)) && defined(_DEBUG)
00091 # include <malloc.h>             /* Needed for malloc_check */
00092 # endif
00093 
00094 # endif
00095 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines