mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 23:23:13 +00:00
Another missing piece. Thanks Eric.
This commit is contained in:
@@ -203,6 +203,9 @@ in_cksum(m, len)
|
|||||||
* code and should be modified for each CPU to be as fast as possible.
|
* 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
|
int
|
||||||
in_cksum(m, len)
|
in_cksum(m, len)
|
||||||
|
|||||||
@@ -203,6 +203,9 @@ in_cksum(m, len)
|
|||||||
* code and should be modified for each CPU to be as fast as possible.
|
* 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
|
int
|
||||||
in_cksum(m, len)
|
in_cksum(m, len)
|
||||||
|
|||||||
@@ -203,6 +203,9 @@ in_cksum(m, len)
|
|||||||
* code and should be modified for each CPU to be as fast as possible.
|
* 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
|
int
|
||||||
in_cksum(m, len)
|
in_cksum(m, len)
|
||||||
|
|||||||
@@ -203,6 +203,9 @@ in_cksum(m, len)
|
|||||||
* code and should be modified for each CPU to be as fast as possible.
|
* 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
|
int
|
||||||
in_cksum(m, len)
|
in_cksum(m, len)
|
||||||
|
|||||||
Reference in New Issue
Block a user