[misc] Move STOB and BTOS macros to misc.h

This commit is contained in:
ejurgensen
2016-12-26 19:29:47 +01:00
parent 171a75375b
commit c50b038397
3 changed files with 7 additions and 0 deletions

View File

@@ -10,6 +10,11 @@
#include <time.h>
#include <pthread.h>
/* Samples to bytes, bytes to samples */
#define STOB(s) ((s) * 4)
#define BTOS(b) ((b) / 4)
struct onekeyval {
char *name;
char *value;