style change (bsd-like)

This commit is contained in:
Connor Olding 2012-08-04 07:24:04 -07:00
parent 2a770f0987
commit 1ba417f8b0
4 changed files with 20 additions and 21 deletions

1
args.c
View File

@ -6,6 +6,7 @@
*/
#include "args.h"
#include <stddef.h>
static int argc, argi;

View File

@ -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;