forked from osmocom/wireshark
parent
8c11584ce1
commit
72baf400bf
|
@ -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,
|
||||
|
|
|
@ -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])
|
||||
|
||||
|
|
Loading…
Reference in New Issue