Make swaptab const.

svn path=/trunk/; revision=53351
This commit is contained in:
Jakub Zawadzki 2013-11-15 23:33:48 +00:00
parent 8c11584ce1
commit 72baf400bf
2 changed files with 4 additions and 2 deletions

View File

@ -30,7 +30,9 @@
#include "bitswap.h"
/* "swaptab[i]" is the value of "i" with the bits reversed. */
guint8 swaptab[256] = {
const guint8
swaptab[256] =
{
0x00, 0x80, 0x40, 0xc0, 0x20, 0xa0, 0x60, 0xe0,
0x10, 0x90, 0x50, 0xd0, 0x30, 0xb0, 0x70, 0xf0,
0x08, 0x88, 0x48, 0xc8, 0x28, 0xa8, 0x68, 0xe8,

View File

@ -31,7 +31,7 @@
extern "C" {
#endif /* __cplusplus */
WS_DLL_PUBLIC guint8 swaptab[256];
WS_DLL_PUBLIC const guint8 swaptab[256];
#define BIT_SWAP(b) (swaptab[b])