diff options
Diffstat (limited to 'flowgraph/data.h')
-rw-r--r-- | flowgraph/data.h | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/flowgraph/data.h b/flowgraph/data.h index 2b92b2e..65bac8f 100644 --- a/flowgraph/data.h +++ b/flowgraph/data.h @@ -8,18 +8,32 @@ namespace FlowGraph { - // Explicitely not including size + // Data models: + // 64 bit Linux: LLP64 + // 64 bit Windows: LP64 + // + // Explicitely NOT defined here: + // * Size (same as Pointer, LongLong on Linux and Windows) + // * Bool (Byte) + // * Long (different on Linux (64 bit) and Windows (32 bit)) enum class DataType: int { - Size, - Int, + Char, // 8 bit + UChar, // 8 bit + + Short, // 16 bit on 64 bit Linux and Windows + UShort, + + Int, // 32 bit on 64 bit Linux and Windows UInt, - Pointer, - Bool, - Char, - UChar, - Short, - UShort + + LongLong, // 64 bit on 64 bit Linux and Windows + ULongLong, + + Pointer, // 64 bit on 64 bit Linux and Windows, size is same size + + Float, // 32 bit, IEEE 754 + Double // 64 bit, IEEE 754 }; class Storage; ///< forward declaration |