- Timestamp:
- 06/01/13 22:22:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mcore/checksum.h
r16563 r16564 1 1 #ifndef MARS_checksum 2 2 #define MARS_checksum 3 4 #include <arpa/inet.h> 3 5 4 6 namespace std … … 78 80 79 81 // This is about as twice as fast as the loop above 80 // ntohs is CPU optimized, hilo[n]doesn't need to be computed81 const uint 32_t *end = sbuf + len/2;82 // ntohs is CPU optimized, i%2 doesn't need to be computed 83 const uint16_t *end = sbuf + len/2; 82 84 while (1) 83 85 {
Note:
See TracChangeset
for help on using the changeset viewer.