aboutsummaryrefslogtreecommitdiffstats
path: root/ieee754b.h
diff options
context:
space:
mode:
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