diff options
author | Tomasz Kramkowski <tk@the-tk.com> | 2021-07-23 16:03:33 +0100 |
---|---|---|
committer | Tomasz Kramkowski <tk@the-tk.com> | 2021-07-23 16:03:33 +0100 |
commit | 5a904fbf12c2d4a270ac76ace4cc70a87869c74c (patch) | |
tree | b800d937d927c66874c8098fad8d39baa2774b84 /ieee754b.h | |
parent | 42cc7b4840818fc0d989202d44315271f968e74d (diff) | |
download | pack-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.h | 15 |
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 |