SST  6.0.0
StructuralSimulationToolkit
sst_types.h
1 // Copyright 2009-2016 Sandia Corporation. Under the terms
2 // of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S.
3 // Government retains certain rights in this software.
4 //
5 // Copyright (c) 2009-2016, Sandia Corporation
6 // All rights reserved.
7 //
8 // This file is part of the SST software package. For license
9 // information, see the LICENSE file in the top level directory of the
10 // distribution.
11 
12 #ifndef SST_CORE_SST_TYPES_H
13 #define SST_CORE_SST_TYPES_H
14 
15 //#include <sst_stdint.h>
16 
17 #include <cstdint>
18 
19 namespace SST {
20 
21 typedef unsigned long ComponentId_t;
22 typedef int32_t LinkId_t;
23 typedef uint64_t Cycle_t;
24 typedef uint64_t SimTime_t;
25 typedef double Time_t;
26 
27 #define MAX_SIMTIME_T 0xFFFFFFFFFFFFFFFFl
28 #define UNSET_COMPONENT_ID 0xFFFFFFFF
29 
30 typedef double watts;
31 typedef double joules;
32 typedef double farads;
33 typedef double volts;
34 
35 #ifndef LIKELY
36 #define LIKELY(x) __builtin_expect((int)(x),1)
37 #define UNLIKELY(x) __builtin_expect((int)(x),0)
38 #endif
39 
40 
41 } // namespace SST
42 
43 #endif //SST_CORE_SST_TYPES_H
Definition: action.cc:17