From ad3fd947005400c90f41baa4416a27d94b1bc157 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sun, 22 Nov 2020 17:11:11 +0100 Subject: Clarify flowgraph types --- flowgraph/data.h | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) (limited to 'flowgraph/data.h') 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 -- cgit v1.2.3