checksum.h (e5451c8f8330e03ad3cfa16048b4daf961af434f) | checksum.h (1e94082963747b551b129528714827f76a090e93) |
---|---|
1#ifndef _M68K_CHECKSUM_H 2#define _M68K_CHECKSUM_H 3 4#include <linux/in6.h> 5 6#ifdef CONFIG_GENERIC_CSUM 7#include <asm-generic/checksum.h> 8#else --- 103 unchanged lines hidden (view full) --- 112static inline __sum16 ip_compute_csum(const void *buff, int len) 113{ 114 return csum_fold (csum_partial(buff, len, 0)); 115} 116 117#define _HAVE_ARCH_IPV6_CSUM 118static __inline__ __sum16 119csum_ipv6_magic(const struct in6_addr *saddr, const struct in6_addr *daddr, | 1#ifndef _M68K_CHECKSUM_H 2#define _M68K_CHECKSUM_H 3 4#include <linux/in6.h> 5 6#ifdef CONFIG_GENERIC_CSUM 7#include <asm-generic/checksum.h> 8#else --- 103 unchanged lines hidden (view full) --- 112static inline __sum16 ip_compute_csum(const void *buff, int len) 113{ 114 return csum_fold (csum_partial(buff, len, 0)); 115} 116 117#define _HAVE_ARCH_IPV6_CSUM 118static __inline__ __sum16 119csum_ipv6_magic(const struct in6_addr *saddr, const struct in6_addr *daddr, |
120 __u32 len, unsigned short proto, __wsum sum) | 120 __u32 len, __u8 proto, __wsum sum) |
121{ 122 register unsigned long tmp; 123 __asm__("addl %2@,%0\n\t" 124 "movel %2@(4),%1\n\t" 125 "addxl %1,%0\n\t" 126 "movel %2@(8),%1\n\t" 127 "addxl %1,%0\n\t" 128 "movel %2@(12),%1\n\t" --- 21 unchanged lines hidden --- | 121{ 122 register unsigned long tmp; 123 __asm__("addl %2@,%0\n\t" 124 "movel %2@(4),%1\n\t" 125 "addxl %1,%0\n\t" 126 "movel %2@(8),%1\n\t" 127 "addxl %1,%0\n\t" 128 "movel %2@(12),%1\n\t" --- 21 unchanged lines hidden --- |