aboutsummaryrefslogtreecommitdiffstats
path: root/ieee754b.h
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2021-07-23 16:03:33 +0100
committerTomasz Kramkowski <tk@the-tk.com>2021-07-23 16:03:33 +0100
commit5a904fbf12c2d4a270ac76ace4cc70a87869c74c (patch)
treeb800d937d927c66874c8098fad8d39baa2774b84 /ieee754b.h
parent42cc7b4840818fc0d989202d44315271f968e74d (diff)
downloadpack-5a904fbf12c2d4a270ac76ace4cc70a87869c74c.tar.gz
pack-5a904fbf12c2d4a270ac76ace4cc70a87869c74c.tar.xz
pack-5a904fbf12c2d4a270ac76ace4cc70a87869c74c.zip
Move ieee754b functions to their own file
Diffstat (limited to 'ieee754b.h')
-rw-r--r--ieee754b.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/ieee754b.h b/ieee754b.h
new file mode 100644
index 0000000..bb6266f
--- /dev/null
+++ b/ieee754b.h
@@ -0,0 +1,15 @@
+/*
+ * Copyright (C) 2021 Tomasz Kramkowski <tk@the-tk.com>
+ * SPDX-License-Identifier: MIT
+ */
+#ifndef PACK_IEEE754B_H
+#define PACK_IEEE754B_H
+
+#include <stdint.h>
+
+float ieee754b32_deserialise(uintmax_t b32);
+double ieee754b64_deserialise(uintmax_t b64);
+uintmax_t ieee754b32_serialise(float f);
+uintmax_t ieee754b64_serialise(double d);
+
+#endif // !PACK_IEEE754B_H