style change (bsd-like)
This commit is contained in:
parent
2a770f0987
commit
1ba417f8b0
4 changed files with 20 additions and 21 deletions
1
args.c
1
args.c
|
@ -6,6 +6,7 @@
|
|||
*/
|
||||
|
||||
#include "args.h"
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
static int argc, argi;
|
||||
|
|
6
crc32.h
6
crc32.h
|
@ -137,15 +137,13 @@ void crc_cycle(ulong *remainder, char c)
|
|||
{
|
||||
crc_fill_tables_once();
|
||||
if (crc_big_endian) {
|
||||
const ulong newByte = crc_be_table[
|
||||
((*remainder) >> 24) ^ c];
|
||||
const ulong newByte = crc_be_table[((*remainder) >> 24) ^ c];
|
||||
/* printf("%08X00 ^ %08X =\n",
|
||||
(int)(*remainder), (int)newByte); */
|
||||
*remainder = ((*remainder) << 8) ^ newByte;
|
||||
*remainder &= 0xFFFFFFFF;
|
||||
} else {
|
||||
const ulong newByte = crc_le_table[
|
||||
((*remainder) ^ c) & 0xFF];
|
||||
const ulong newByte = crc_le_table[((*remainder) ^ c) & 0xFF];
|
||||
/* printf(" %08X ^ %08X =\n",
|
||||
(int)((*remainder) >> 8), (int)newByte); */
|
||||
*remainder = ((*remainder) >> 8) ^ newByte;
|
||||
|
|
Loading…
Add table
Reference in a new issue