Block-Structured AMR Software Framework
AMReX_FPC.H
Go to the documentation of this file.
1 
2 #ifndef BL_FPC_H
3 #define BL_FPC_H
4 #include <AMReX_Config.H>
5 
6 #include <AMReX_FabConv.H>
7 
8 namespace amrex {
9 
18 class FPC
19 {
20 public:
22  static const int normal_float_order[];
23 
25  static const int reverse_float_order[];
26 
28  static const int reverse_float_order_2[];
29 
31  static const int normal_double_order[];
32 
34  static const int reverse_double_order[];
35 
37  static const int reverse_double_order_2[];
38 
50  static const Long ieee_float[];
51 
53  static const Long ieee_double[];
54 
60  static const IntDescriptor& NativeLongDescriptor ();
61 
67  static const IntDescriptor& NativeIntDescriptor ();
68 
76  static const RealDescriptor& NativeRealDescriptor ();
77 
82  static const RealDescriptor& Native32RealDescriptor ();
83  static const RealDescriptor& Native64RealDescriptor ();
84 
90 
96 };
97 
98 }
99 
100 #endif /*BL_FPC_H*/
A Collection of Floating-Point Constants Supporting FAB I/O.
Definition: AMReX_FPC.H:19
static const RealDescriptor & Native64RealDescriptor()
Definition: AMReX_FPC.cpp:137
static const RealDescriptor & Ieee64NormalRealDescriptor()
Returns a constant reference to a RealDescriptor detailing the IEEE 64-bit normal FP format.
Definition: AMReX_FPC.cpp:158
static const RealDescriptor & Native32RealDescriptor()
NativeRealDescriptor is equivalent to Native32RealDescriptor if BL_FLOAT is used. Otherwise,...
Definition: AMReX_FPC.cpp:124
static const IntDescriptor & NativeLongDescriptor()
Returns a constant reference to an IntDescriptor describing the native "Long" under which AMReX was c...
Definition: AMReX_FPC.cpp:89
static const RealDescriptor & Ieee32NormalRealDescriptor()
Returns a constant reference to a RealDescriptor detailing the IEEE 32-bit normal FP format.
Definition: AMReX_FPC.cpp:150
static const int reverse_float_order_2[]
Another "reversed" FP order: {2,1,4,3}.
Definition: AMReX_FPC.H:28
static const int reverse_double_order[]
A "reversed" double order: {8,7,6,5,4,3,2,1}.
Definition: AMReX_FPC.H:34
static const IntDescriptor & NativeIntDescriptor()
Returns a constant reference to an IntDescriptor describing the native "int" under which AMReX was co...
Definition: AMReX_FPC.cpp:76
static const int normal_double_order[]
The "normal" double order: {1,2,3,4,5,6,7,8}.
Definition: AMReX_FPC.H:31
static const int reverse_double_order_2[]
Another "reversed" double order: {2,1,4,3,6,5,8,7}.
Definition: AMReX_FPC.H:37
static const RealDescriptor & NativeRealDescriptor()
Returns a constant reference to a RealDescriptor describing the native Real under which AMReX was com...
Definition: AMReX_FPC.cpp:103
static const Long ieee_double[]
Array detailing the format of IEEE 64-bit normal order doubles.
Definition: AMReX_FPC.H:53
static const int normal_float_order[]
4-element array representing "normal" float order: {1,2,3,4}
Definition: AMReX_FPC.H:22
static const int reverse_float_order[]
4-element array representing "reverse" float order: {4,3,2,1}
Definition: AMReX_FPC.H:25
static const Long ieee_float[]
Array detailing the format of IEEE 32-bit normal order floats. In general, here's what the various in...
Definition: AMReX_FPC.H:50
A Descriptor of the Long Integer type.
Definition: AMReX_FabConv.H:29
A Descriptor of the Real Type.
Definition: AMReX_FabConv.H:105
Definition: AMReX_Amr.cpp:49