diff options
| author | cubicdaiya <[email protected]> | 2014-03-01 03:31:45 +0900 |
|---|---|---|
| committer | cubicdaiya <[email protected]> | 2014-03-01 03:31:45 +0900 |
| commit | 67de10bfcb9d9ff21e1aa678aff8afa10446b7c4 (patch) | |
| tree | 440782e0ae519f5d0f82a8e68b76274aa0bd84a3 /src/crc.c | |
| parent | 9b65a0d5722c4f23a9b3390e4d9e4277a4881dea (diff) | |
| download | mruby-67de10bfcb9d9ff21e1aa678aff8afa10446b7c4.tar.gz mruby-67de10bfcb9d9ff21e1aa678aff8afa10446b7c4.zip | |
use C style comments instead of C++ style comments
According to CONTRIBUTING.md,
Don't use C++ style comments
/* This is the prefered comment style */
Use C++ style comments only for temporary comment e.g. commenting out some code lines.
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) |
