diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-11-22 17:11:11 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-11-22 17:11:11 +0100 |
commit | ad3fd947005400c90f41baa4416a27d94b1bc157 (patch) | |
tree | 4332b7ad2183f0e5b4e10719129573540519413a /flowgraph/data.h | |
parent | fd8517e10937a5b72ed839ce900306f281d74b7d (diff) |
Clarify flowgraph types
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 |