Mercurial > hg > nginx
comparison src/core/ngx_crc.h @ 208:0b67be7d4489
nginx-0.0.1-2003-12-08-23:48:12 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 08 Dec 2003 20:48:12 +0000 |
parents | 267ea1d98683 |
children | da8c5707af39 |
comparison
equal
deleted
inserted
replaced
207:6e0fef527732 | 208:0b67be7d4489 |
---|---|
5 /* 32-bit crc16 */ | 5 /* 32-bit crc16 */ |
6 | 6 |
7 ngx_inline static uint32_t ngx_crc(char *data, size_t len) | 7 ngx_inline static uint32_t ngx_crc(char *data, size_t len) |
8 { | 8 { |
9 uint32_t sum; | 9 uint32_t sum; |
10 | 10 |
11 for (sum = 0; len; len--) { | 11 for (sum = 0; len; len--) { |
12 /* | 12 /* |
13 * gcc 2.95.2 x86 and icc 7.1.006 compile that operator | 13 * gcc 2.95.2 x86 and icc 7.1.006 compile that operator |
14 * into the single rol opcode. | 14 * into the single rol opcode. |
15 * msvc 6.0sp2 compiles it into four opcodes. | 15 * msvc 6.0sp2 compiles it into four opcodes. |