sc_machine.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002 
00003   The following code is derived, directly or indirectly, from the SystemC
00004   source code Copyright (c) 1996-2006 by all Contributors.
00005   All Rights reserved.
00006 
00007   The contents of this file are subject to the restrictions and limitations
00008   set forth in the SystemC Open Source License Version 2.4 (the "License");
00009   You may not use this file except in compliance with such restrictions and
00010   limitations. You may obtain instructions on how to receive a copy of the
00011   License at http://www.systemc.org/. Software distributed by Contributors
00012   under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF
00013   ANY KIND, either express or implied. See the License for the specific
00014   language governing rights and limitations under the License.
00015 
00016  *****************************************************************************/
00017 
00018 /*****************************************************************************
00019 
00020   sc_machine.h -- Machine-dependent Environment Settings
00021 
00022   Original Author: Andy Goodrich, Forte Design Systems, Inc.
00023 
00024  *****************************************************************************/
00025 
00026 /*****************************************************************************
00027 
00028   MODIFICATION LOG - modifiers, enter your name, affiliation, date and
00029   changes you are making here.
00030 
00031       Name, Affiliation, Date:
00032   Description of Modification:
00033 
00034  *****************************************************************************/
00035 
00036 // $Log: sc_machine.h,v $
00037 // Revision 1.1.1.1  2006/12/15 20:31:39  acg
00038 // SystemC 2.2
00039 //
00040 // Revision 1.3  2006/01/13 18:53:10  acg
00041 // Andy Goodrich: Added $Log command so that CVS comments are reproduced in
00042 // the source.
00043 //
00044 
00045 #ifndef SC_MACHINE_H
00046 #define SC_MACHINE_H
00047 
00048 // ----------------------------------------------------------------------------
00049 //  Little or big endian machine?
00050 // ----------------------------------------------------------------------------
00051 
00052 #if defined( __x86_64__ ) || defined( i386 ) || defined(WIN32)
00053 #   define SC_LITTLE_ENDIAN
00054 #elif defined( __ppc__ ) || defined( sparc ) || defined( __hppa )
00055 #   define SC_BIG_ENDIAN
00056 #endif
00057 
00058 // ----------------------------------------------------------------------------
00059 //  Are long data types 32-bit or 64-bit?
00060 // ----------------------------------------------------------------------------
00061 
00062 #if defined( __x86_64__ ) 
00063 #   define SC_LONG_64
00064 #endif
00065 
00066 
00067 #endif // !defined(SC_MACHINE_H)

Generated on Wed Jan 21 15:32:10 2009 for SystemC by  doxygen 1.5.5