From 24c8bcfe7f76b20124e2862ea050f815c0f768e7 Mon Sep 17 00:00:00 2001 From: tlatorre Date: Tue, 14 Aug 2018 10:08:27 -0500 Subject: move everything to src directory --- pack2b.h | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 pack2b.h (limited to 'pack2b.h') diff --git a/pack2b.h b/pack2b.h deleted file mode 100644 index b63807a..0000000 --- a/pack2b.h +++ /dev/null @@ -1,27 +0,0 @@ -#ifndef PACK2B_H -#define PACK2B_H - -#include - -// various bits for floating point types--varies for different architectures -typedef float float32_t; -typedef double float64_t; - -// macros for packing floats and doubles: -#define pack754_32(f) (pack754((f), 32, 8)) -#define pack754_64(f) (pack754((f), 64, 11)) -#define unpack754_32(i) (unpack754((i), 32, 8)) -#define unpack754_64(i) (unpack754((i), 64, 11)) - -uint64_t pack754(long double f, unsigned bits, unsigned expbits); -long double unpack754(uint64_t i, unsigned bits, unsigned expbits); -void packi16(uint8_t *buf, int16_t i); -void packi32(uint8_t *buf, int32_t i); -void packi64(uint8_t *buf, int64_t i); -int16_t unpacki16(uint8_t *buf); -int32_t unpacki32(uint8_t *buf); -int64_t unpacki64(uint8_t *buf); -int32_t pack(uint8_t *buf, char *format, ...); -void unpack(uint8_t *buf, char *format, ...); - -#endif -- cgit