aboutsummaryrefslogtreecommitdiffstats
path: root/ieee754b.h
blob: 5c589758181112844dde287347711e3746da8623 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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