Mercurial > hg > audiodb
diff lshlib.h @ 306:921ba500a024
changed FORMAT2 index serialization so that token bits don't scribble over point index for >=32768 tracks
author | mas01mc |
---|---|
date | Tue, 05 Aug 2008 22:40:38 +0000 |
parents | f922c234462f |
children | 896679d8cc39 |
line wrap: on
line diff
--- a/lshlib.h Tue Aug 05 15:34:10 2008 +0000 +++ b/lshlib.h Tue Aug 05 22:40:38 2008 +0000 @@ -70,9 +70,9 @@ #define O2_SERIAL_FILEFORMAT2 (0x2U) // Optimize for in-core search // Flags for serialization fileformat2: use high 3 bits of Uns32T -#define O2_SERIAL_FLAGS_T1_BIT (0x80000000U) -#define O2_SERIAL_FLAGS_T2_BIT (0x40000000U) -#define O2_SERIAL_FLAGS_END_BIT (0x20000000U) +#define O2_SERIAL_TOKEN_T1 (0xFFFFFFFC) +#define O2_SERIAL_TOKEN_T2 (0xFFFFFFFDU) +#define O2_SERIAL_TOKEN_ENDTABLE (0xFFFFFFFEU) unsigned align_up(unsigned x, unsigned w);