From 5a904fbf12c2d4a270ac76ace4cc70a87869c74c Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Fri, 23 Jul 2021 16:03:33 +0100 Subject: Move ieee754b functions to their own file --- ieee754b.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 ieee754b.h (limited to 'ieee754b.h') 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 + * SPDX-License-Identifier: MIT + */ +#ifndef PACK_IEEE754B_H +#define PACK_IEEE754B_H + +#include + +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 -- cgit v1.2.3-54-g00ecf