aboutsummaryrefslogtreecommitdiffstats
path: root/utils/common/codec-fwht.patch
blob: 4d41225b86fb25a31eff80f7cb7381266a67d6b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- a/utils/common/codec-fwht.h.old	2018-11-23 13:43:52.713731559 +0100
+++ b/utils/common/codec-fwht.h	2018-11-23 13:47:55.484198283 +0100
@@ -8,8 +8,24 @@
 #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...)
+
+
+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

Privacy Policy