Added Curt McDowell's platform-independent optimized checksum routine.

This commit is contained in:
likewise
2005-12-14 22:51:35 +00:00
parent 6facaf8f05
commit 02b575e9e4
3 changed files with 140 additions and 1 deletions

View File

@@ -39,6 +39,9 @@
#include "lwip/ip_addr.h"
u16_t inet_chksum(void *dataptr, u16_t len);
#if 0 // optimized routine
u16_t inet_chksum4(u8_t *dataptr, u16_t len);
#endif
u16_t inet_chksum_pbuf(struct pbuf *p);
u16_t inet_chksum_pseudo(struct pbuf *p,
struct ip_addr *src, struct ip_addr *dest,