From 67de10bfcb9d9ff21e1aa678aff8afa10446b7c4 Mon Sep 17 00:00:00 2001 From: cubicdaiya Date: Sat, 1 Mar 2014 03:31:45 +0900 Subject: 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. --- src/crc.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/crc.c') diff --git a/src/crc.c b/src/crc.c index 3bda7bc26..290b2ca0e 100644 --- a/src/crc.c +++ b/src/crc.c @@ -8,12 +8,13 @@ #include #include -// 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) -- cgit v1.2.3