aboutsummaryrefslogtreecommitdiff
path: root/pack2b.h
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2018-08-14 10:08:27 -0500
committertlatorre <tlatorre@uchicago.edu>2018-08-14 10:08:27 -0500
commit24c8bcfe7f76b20124e2862ea050f815c0f768e7 (patch)
treee5bdbd638a2c7f38f1c094cc9e95cbdfe05b9481 /pack2b.h
parent0b7f199c0d93074484ea580504485a32dc29f5e2 (diff)
downloadsddm-24c8bcfe7f76b20124e2862ea050f815c0f768e7.tar.gz
sddm-24c8bcfe7f76b20124e2862ea050f815c0f768e7.tar.bz2
sddm-24c8bcfe7f76b20124e2862ea050f815c0f768e7.zip
move everything to src directory
Diffstat (limited to 'pack2b.h')
-rw-r--r--pack2b.h27
1 files changed, 0 insertions, 27 deletions
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 <stdint.h>
-
-// 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