diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-03-01 10:52:46 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-03-01 10:52:46 +0900 |
| commit | 5f937591580ef810fedcdfb40e94ceb9f8ef5178 (patch) | |
| tree | 0c7e2ee1e6d451df377fb3a36052bb728dc6824b /src/crc.c | |
| parent | 78f2902c0680f53dc2cf4b7febce1d3613db67bf (diff) | |
| parent | 67de10bfcb9d9ff21e1aa678aff8afa10446b7c4 (diff) | |
| download | mruby-5f937591580ef810fedcdfb40e94ceb9f8ef5178.tar.gz mruby-5f937591580ef810fedcdfb40e94ceb9f8ef5178.zip | |
Merge branch 'issues/comment_style' of https://github.com/cubicdaiya/mruby into cubicdaiya-issues/comment_style
Diffstat (limited to 'src/crc.c')
| -rw-r--r-- | src/crc.c | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -8,12 +8,13 @@ #include <stdint.h> #include <stddef.h> -// Calculate CRC (CRC-16-CCITT) -// -// 0000_0000_0000_0000_0000_0000_0000_0000 -// ^|------- CRC -------|- work --| -// carry -#define CRC_16_CCITT 0x11021ul //x^16+x^12+x^5+1 +/* Calculate CRC (CRC-16-CCITT) +** +** 0000_0000_0000_0000_0000_0000_0000_0000 +** ^|------- CRC -------|- work --| +** carry +*/ +#define CRC_16_CCITT 0x11021ul /* x^16+x^12+x^5+1 */ #define CRC_XOR_PATTERN (CRC_16_CCITT << 8) #define CRC_CARRY_BIT (0x01000000) |
