Mercurial > hg > audiodb
changeset 485:282c651e2fbb memory-leaks
NON BACKWARD-COMPATIBLE indexing change: Modified N_POINT_BITS encoding in audioDB database file header. Now requires a 5 bit field, MSB of 32 bit flag field.
author | mas01mc |
---|---|
date | Sat, 10 Jan 2009 13:35:27 +0000 |
parents | d515ce3864fc |
children | 920919d62542 |
files | create.cpp |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/create.cpp Sat Jan 10 13:31:10 2009 +0000 +++ b/create.cpp Sat Jan 10 13:35:27 2009 +0000 @@ -55,11 +55,11 @@ // For backward-compatibility, Record the point-encoding parameter for LSH indexing in the adb header // If this value is 0 then it will be set to 14 -#if O2_LSH_N_POINT_BITS > 15 -#error "AudioDB Compile ERROR: consistency check of O2_LSH_POINT_BITS failed (>15)" -#endif + #if LSH_N_POINT_BITS > 31 + #error "AudioDB Compile ERROR: consistency check of O2_LSH_POINT_BITS failed (>31)" + #endif - dbH->flags |= LSH_N_POINT_BITS << 28; + dbH->flags |= LSH_N_POINT_BITS << 27; // If database will fit in a single file the vectors are copied into the AudioDB instance // Else all the vectors are left on the FileSystem and we use the dataOffset as storage