summaryrefslogtreecommitdiff
path: root/include/osm/types.h
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2024-05-06 01:03:43 -0400
committerKyle Gunger <kgunger12@gmail.com>2024-05-06 01:03:43 -0400
commite6c126856c7eb9e72a3640d4b3ab5000ac2494ab (patch)
treef7f1d22a9801322bac394dac6341feea6ccf9900 /include/osm/types.h
parenta85727c41263b83f5363b43a15ba02317f3b5081 (diff)
Header structs
Diffstat (limited to 'include/osm/types.h')
-rw-r--r--include/osm/types.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/osm/types.h b/include/osm/types.h
index 08a0d03..81a072e 100644
--- a/include/osm/types.h
+++ b/include/osm/types.h
@@ -33,6 +33,12 @@ typedef int64_t OSMInteger;
/// Represents a floating point (IEEE 754 64 bit)
typedef uint64_t OSMFloat;
+#define OSM_FLOAT_EXPO_LEN 11
+#define OSM_FLOAT_EXPO_MASK 0x7ff
+#define OSM_FLOAT_EXPO_BIAS 0x3ff
+#define OSM_FLOAT_FRAC_LEN 52
+#define OSM_FLOAT_FRAC_MASK 0xffffffffffffff
+
/// Represents the broken down floating point number
typedef struct {
uint8_t sign;