A Collection of Floating-Point Constants Supporting FAB I/O. More...
#include <AMReX_FPC.H>
Static Public Member Functions | |
static const IntDescriptor & | NativeLongDescriptor () |
Returns a constant reference to an IntDescriptor describing the native "Long" under which AMReX was compiled. Each AMReX library will have exactly one of these compiled into it. More... | |
static const IntDescriptor & | NativeIntDescriptor () |
Returns a constant reference to an IntDescriptor describing the native "int" under which AMReX was compiled. Each AMReX library will have exactly one of these compiled into it. More... | |
static const RealDescriptor & | NativeRealDescriptor () |
Returns a constant reference to a RealDescriptor describing the native Real under which AMReX was compiled. Each AMReX library will have exactly one of these compiled into it. Note that "Real" will be one of "float" or "double" depending on how the version of AMReX was built. More... | |
static const RealDescriptor & | Native32RealDescriptor () |
NativeRealDescriptor is equivalent to Native32RealDescriptor if BL_FLOAT is used. Otherwise, it is equivalent to Native64RealDescriptor. More... | |
static const RealDescriptor & | Native64RealDescriptor () |
static const RealDescriptor & | Ieee32NormalRealDescriptor () |
Returns a constant reference to a RealDescriptor detailing the IEEE 32-bit normal FP format. More... | |
static const RealDescriptor & | Ieee64NormalRealDescriptor () |
Returns a constant reference to a RealDescriptor detailing the IEEE 64-bit normal FP format. More... | |
Static Public Attributes | |
static const int | normal_float_order [] = { 1, 2, 3, 4 } |
4-element array representing "normal" float order: {1,2,3,4} More... | |
static const int | reverse_float_order [] = { 4, 3, 2, 1 } |
4-element array representing "reverse" float order: {4,3,2,1} More... | |
static const int | reverse_float_order_2 [] = { 2, 1, 4, 3 } |
Another "reversed" FP order: {2,1,4,3}. More... | |
static const int | normal_double_order [] = { 1, 2, 3, 4, 5, 6, 7, 8 } |
The "normal" double order: {1,2,3,4,5,6,7,8}. More... | |
static const int | reverse_double_order [] = { 8, 7, 6, 5, 4, 3, 2, 1 } |
A "reversed" double order: {8,7,6,5,4,3,2,1}. More... | |
static const int | reverse_double_order_2 [] = { 2, 1, 4, 3, 6, 5, 8, 7 } |
Another "reversed" double order: {2,1,4,3,6,5,8,7}. More... | |
static const Long | ieee_float [] = { 32L, 8L, 23L, 0L, 1L, 9L, 0L, 0x7FL } |
Array detailing the format of IEEE 32-bit normal order floats. In general, here's what the various indices in "format" array means: format[0] = number of bits per number format[1] = number of bits in exponent format[2] = number of bits in mantissa format[3] = start bit of sign format[4] = start bit of exponent format[5] = start bit of mantissa format[6] = high order mantissa bit (CRAY needs this) format[7] = bias of exponent. More... | |
static const Long | ieee_double [] = { 64L, 11L, 52L, 0L, 1L, 12L, 0L, 0x3FFL } |
Array detailing the format of IEEE 64-bit normal order doubles. More... | |
A Collection of Floating-Point Constants Supporting FAB I/O.
This class is a poor-person's namespace of floating-point constants used in support of FAB I/O. Since we can't assume the existence of namespaces, and we don't like global constants, we make them static constant data members of this class.
|
static |
Returns a constant reference to a RealDescriptor detailing the IEEE 32-bit normal FP format.
|
static |
Returns a constant reference to a RealDescriptor detailing the IEEE 64-bit normal FP format.
|
static |
NativeRealDescriptor is equivalent to Native32RealDescriptor if BL_FLOAT is used. Otherwise, it is equivalent to Native64RealDescriptor.
|
static |
|
static |
Returns a constant reference to an IntDescriptor describing the native "int" under which AMReX was compiled. Each AMReX library will have exactly one of these compiled into it.
|
static |
Returns a constant reference to an IntDescriptor describing the native "Long" under which AMReX was compiled. Each AMReX library will have exactly one of these compiled into it.
|
static |
Returns a constant reference to a RealDescriptor describing the native Real under which AMReX was compiled. Each AMReX library will have exactly one of these compiled into it. Note that "Real" will be one of "float" or "double" depending on how the version of AMReX was built.
|
static |
Array detailing the format of IEEE 64-bit normal order doubles.
|
static |
Array detailing the format of IEEE 32-bit normal order floats. In general, here's what the various indices in "format" array means: format[0] = number of bits per number format[1] = number of bits in exponent format[2] = number of bits in mantissa format[3] = start bit of sign format[4] = start bit of exponent format[5] = start bit of mantissa format[6] = high order mantissa bit (CRAY needs this) format[7] = bias of exponent.
|
static |
The "normal" double order: {1,2,3,4,5,6,7,8}.
|
static |
4-element array representing "normal" float order: {1,2,3,4}
|
static |
A "reversed" double order: {8,7,6,5,4,3,2,1}.
|
static |
Another "reversed" double order: {2,1,4,3,6,5,8,7}.
|
static |
4-element array representing "reverse" float order: {4,3,2,1}
|
static |
Another "reversed" FP order: {2,1,4,3}.