blob: 530b96cc7f491a0d5be2050b03912f9f255ad849 [file] [log] [blame]
--- a/utils/common/codec-fwht.h.old 2019-02-23 09:38:59.454065366 -0800
+++ b/utils/common/codec-fwht.h 2019-02-23 09:40:44.007803414 -0800
@@ -8,8 +8,28 @@
#define CODEC_FWHT_H
#include <linux/types.h>
-#include <linux/bitops.h>
-#include <asm/byteorder.h>
+#include <string.h>
+#include <errno.h>
+#include <arpa/inet.h>
+#include <stdbool.h>
+#include <stdint.h>
+
+#define BIT(x) (1 << (x))
+#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
+#define GENMASK(h, l) \
+ (((~0UL) - (1UL << (l)) + 1) & (~0UL >> ((8 * sizeof(long)) - 1 - (h))))
+#define pr_err(arg...)
+#define __round_mask(x, y) ((__typeof__(x))((y)-1))
+#define round_up(x, y) ((((x)-1) | __round_mask(x, y))+1)
+#define noinline_for_stack
+
+
+typedef __u64 u64;
+typedef __u32 u32;
+typedef __u16 u16;
+typedef __s16 s16;
+typedef __s32 s32;
+typedef __u8 u8;
/*
* The compressed format consists of a fwht_cframe_hdr struct followed by the