From: Josh Coalson Date: Fri, 29 Feb 2008 01:57:22 +0000 (+0000) Subject: const-ify FLAC__crc16_table[] X-Git-Tag: 1.3.0pre1~193 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f7df1154ceb1d78780c01bfb74d2fd14afa90a9a;p=platform%2Fupstream%2Fflac.git const-ify FLAC__crc16_table[] --- diff --git a/src/libFLAC/crc.c b/src/libFLAC/crc.c index cfb8adc..6623f1e 100644 --- a/src/libFLAC/crc.c +++ b/src/libFLAC/crc.c @@ -74,7 +74,7 @@ FLAC__byte const FLAC__crc8_table[256] = { /* CRC-16, poly = x^16 + x^15 + x^2 + x^0, init = 0 */ -unsigned FLAC__crc16_table[256] = { +unsigned const FLAC__crc16_table[256] = { 0x0000, 0x8005, 0x800f, 0x000a, 0x801b, 0x001e, 0x0014, 0x8011, 0x8033, 0x0036, 0x003c, 0x8039, 0x0028, 0x802d, 0x8027, 0x0022, 0x8063, 0x0066, 0x006c, 0x8069, 0x0078, 0x807d, 0x8077, 0x0072, diff --git a/src/libFLAC/include/private/crc.h b/src/libFLAC/include/private/crc.h index 4ba0dc2..eb97633 100644 --- a/src/libFLAC/include/private/crc.h +++ b/src/libFLAC/include/private/crc.h @@ -48,7 +48,7 @@ FLAC__uint8 FLAC__crc8(const FLAC__byte *data, unsigned len); ** polynomial = x^16 + x^15 + x^2 + x^0 ** init = 0 */ -extern unsigned FLAC__crc16_table[256]; +extern unsigned const FLAC__crc16_table[256]; #define FLAC__CRC16_UPDATE(data, crc) (((((crc)<<8) & 0xffff) ^ FLAC__crc16_table[((crc)>>8) ^ (data)])) /* this alternate may be faster on some systems/compilers */