• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

sst/elements/genericProc/FE/global.h

00001 // Copyright 2007 Sandia Corporation. Under the terms
00002 // of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S.
00003 // Government retains certain rights in this software.
00004 // 
00005 // Copyright (c) 2005-2007, Sandia Corporation
00006 // All rights reserved.
00007 // Copyright (c) 2003-2005, University of Notre Dame
00008 // All rights reserved.
00009 // 
00010 // This file is part of the SST software package. For license
00011 // information, see the LICENSE file in the top level directory of the
00012 // distribution.
00013 
00014 
00015 #ifndef GLOBAL_H
00016 #define GLOBAL_H
00017 
00018 #include <stdio.h>
00019 #include <stdlib.h>
00020 #include <sst_stdint.h>
00021 #include <errno.h>
00022 #include <arpa/inet.h>      // for endianness
00023 #include <sys/param.h>      // for endianness
00024 
00025 extern  bool    InitializeSimMaskToOpCodeTable();
00026 const  int      HumanFormat = 0;
00027 
00028 //: unsigned integer
00029 typedef unsigned        int     uint;
00030 //: signed integer
00031 typedef signed          int     sint;
00032 //: 64-bit integer
00033 //typedef       long            long    int64;
00034 typedef     uint64_t  int64;
00035 
00036 //: 64-bit unsigned integer
00037 typedef uint64_t        uint64;
00038 typedef unsigned        long    ulong;
00039 
00040 //: 32-bit unsigned integer
00041 typedef uint32_t        uint32;
00042 
00043 //: 32-bit integer
00044 typedef int32_t         int32;
00045 
00046 //: unsigned 16-bit integer
00047 typedef uint16_t        uint16;
00048 
00049 //: 16-bit integer
00050 typedef int16_t         int16;
00051 
00052 //: unsigned 8-bit integer
00053 typedef uint8_t         uint8;
00054 
00055 //: 8-bit integer
00056 typedef int8_t          int8;
00057 
00058 //: 8-bit integer
00059 typedef uint8_t         byte;
00060 
00061 //: Simulation Address Datatype
00062 //typedef unsigned int simAddress;    // 32-bit int
00063 //typedef size_t simAddress;          // size_t=4 on 32bit, 8 on 64bit
00064 typedef uint32_t simAddress;           // wcm:: simAddress = 32-bit field
00065 
00066 //: Frame (register set) identifier
00067 typedef simAddress frameID;
00068 
00069 //: Simulation register datatype
00070 typedef int32 simRegister;
00071 
00072 //: Simulation Process ID
00073 typedef simRegister simPID;
00074 
00075 // from tt7.cc
00076 extern const char *instNames[];
00077 
00078 #ifndef true
00079 #       define  true    1
00080 #endif
00081 
00082 #ifndef false
00083 #       define  false   0
00084 #endif
00085 
00086 
00087 #endif

Generated on Fri Oct 22 2010 11:02:21 for SST by  doxygen 1.7.1