Another missing piece. Thanks Eric.

This commit is contained in:
Joel Sherrill
1998-08-21 17:37:01 +00:00
parent 025eb96e78
commit 617a1a2db1
4 changed files with 12 additions and 0 deletions

View File

@@ -203,6 +203,9 @@ in_cksum(m, len)
* code and should be modified for each CPU to be as fast as possible.
*/
#define ADDCARRY(x) (x > 65535 ? x -= 65535 : x)
#define REDUCE \
{l_util.l = sum; sum = l_util.s[0] + l_util.s[1]; ADDCARRY(sum);}
int
in_cksum(m, len)

View File

@@ -203,6 +203,9 @@ in_cksum(m, len)
* code and should be modified for each CPU to be as fast as possible.
*/
#define ADDCARRY(x) (x > 65535 ? x -= 65535 : x)
#define REDUCE \
{l_util.l = sum; sum = l_util.s[0] + l_util.s[1]; ADDCARRY(sum);}
int
in_cksum(m, len)

View File

@@ -203,6 +203,9 @@ in_cksum(m, len)
* code and should be modified for each CPU to be as fast as possible.
*/
#define ADDCARRY(x) (x > 65535 ? x -= 65535 : x)
#define REDUCE \
{l_util.l = sum; sum = l_util.s[0] + l_util.s[1]; ADDCARRY(sum);}
int
in_cksum(m, len)

View File

@@ -203,6 +203,9 @@ in_cksum(m, len)
* code and should be modified for each CPU to be as fast as possible.
*/
#define ADDCARRY(x) (x > 65535 ? x -= 65535 : x)
#define REDUCE \
{l_util.l = sum; sum = l_util.s[0] + l_util.s[1]; ADDCARRY(sum);}
int
in_cksum(m, len)