We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ed406e commit 2d46973Copy full SHA for 2d46973
include/linux/swab.h
@@ -20,4 +20,29 @@
20
# define swab64s __swab64s
21
# define swahw32s __swahw32s
22
# define swahb32s __swahb32s
23
+
24
+static inline void swab16_array(u16 *buf, unsigned int words)
25
+{
26
+ while (words--) {
27
+ swab16s(buf);
28
+ buf++;
29
+ }
30
+}
31
32
+static inline void swab32_array(u32 *buf, unsigned int words)
33
34
35
+ swab32s(buf);
36
37
38
39
40
+static inline void swab64_array(u64 *buf, unsigned int words)
41
42
43
+ swab64s(buf);
44
45
46
47
48
#endif /* _LINUX_SWAB_H */
0 commit comments