diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-03-17 05:15:40 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-03-17 05:15:40 -0700 |
| commit | 7872bee70013ed0763942f6097ca0a61000fc92a (patch) | |
| tree | b6bcfbb9c90d42bfd906b5c458889524f8d6bfef /src/crc.c | |
| parent | 526f4bf6400acdc69b214076946c65b09828f643 (diff) | |
| parent | 83ddef68800a7b269cb08dd987e2f8df6f291710 (diff) | |
| download | mruby-7872bee70013ed0763942f6097ca0a61000fc92a.tar.gz mruby-7872bee70013ed0763942f6097ca0a61000fc92a.zip | |
Merge pull request #1024 from crimsonwoods/remove_bitshifted_constants_larger_than_16bit
remove bit-shift operation.
Diffstat (limited to 'src/crc.c')
| -rw-r--r-- | src/crc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -13,7 +13,7 @@ // 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 (1 << 24) +#define CRC_CARRY_BIT (0x01000000) uint16_t calc_crc_16_ccitt(unsigned char *src, int nbytes) |
