17 #include <linux/module.h>
26 odd = 1 & (
unsigned long) buff;
28 result = (*buff << 8);
34 if (2 & (
unsigned long) buff) {
35 result += *(
const unsigned short *)buff;
43 if (4 & (
unsigned long) buff) {
44 unsigned int w = *(
const unsigned int *)buff;
45 result = __insn_v2sadau(result, w, 0);
60 unsigned long w = *(
const unsigned long *)buff;
64 result = __insn_v2sadau(result, w, 0);
66 result = __insn_sadah_u(result, w, 0);
71 unsigned int w = *(
const unsigned int *)buff;
72 result = __insn_v2sadau(result, w, 0);
78 result += *(
const unsigned short *) buff;
84 result = csum_long(result);