From e6c126856c7eb9e72a3640d4b3ab5000ac2494ab Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Mon, 6 May 2024 01:03:43 -0400 Subject: Header structs --- include/osm/types.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/osm/types.h') 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; -- cgit v1.2.3