summaryrefslogtreecommitdiffhomepage
path: root/src/crc.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2013-03-17 05:15:40 -0700
committerYukihiro "Matz" Matsumoto <[email protected]>2013-03-17 05:15:40 -0700
commit7872bee70013ed0763942f6097ca0a61000fc92a (patch)
treeb6bcfbb9c90d42bfd906b5c458889524f8d6bfef /src/crc.c
parent526f4bf6400acdc69b214076946c65b09828f643 (diff)
parent83ddef68800a7b269cb08dd987e2f8df6f291710 (diff)
downloadmruby-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crc.c b/src/crc.c
index c150f966b..a54909fdb 100644
--- a/src/crc.c
+++ b/src/crc.c
@@ -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)