![]() |
|
|||
0001 /* 0002 * Licensed under the GPL 0003 */ 0004 0005 #ifndef __UM_SYSDEP_CHECKSUM_H 0006 #define __UM_SYSDEP_CHECKSUM_H 0007 0008 static inline unsigned add32_with_carry(unsigned a, unsigned b) 0009 { 0010 asm("addl %2,%0\n\t" 0011 "adcl $0,%0" 0012 : "=r" (a) 0013 : "0" (a), "r" (b)); 0014 return a; 0015 } 0016 0017 extern __sum16 ip_compute_csum(const void *buff, int len); 0018 0019 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |