Mercurial > hg > audiodb
comparison audioDB.cpp @ 182:a6853791a275 no-big-mmap
Delete a stray remaining memcpy().
author | mas01cr |
---|---|
date | Thu, 15 Nov 2007 17:09:17 +0000 |
parents | c22d53219112 |
children | 3002bee2f60d |
comparison
equal
deleted
inserted
replaced
181:c22d53219112 | 182:a6853791a275 |
---|---|
779 | 779 |
780 // Update track to file index map | 780 // Update track to file index map |
781 memcpy (trackTable+dbH->numFiles-1, &numVectors, sizeof(unsigned)); | 781 memcpy (trackTable+dbH->numFiles-1, &numVectors, sizeof(unsigned)); |
782 | 782 |
783 insert_data_vectors(insertoffset, indata + sizeof(int), statbuf.st_size - sizeof(int)); | 783 insert_data_vectors(insertoffset, indata + sizeof(int), statbuf.st_size - sizeof(int)); |
784 | |
785 memcpy (((char *) dataBuf) + insertoffset, indata+sizeof(int), statbuf.st_size-sizeof(int)); | |
786 | 784 |
787 // Norm the vectors on input if the database is already L2 normed | 785 // Norm the vectors on input if the database is already L2 normed |
788 if(dbH->flags & O2_FLAG_L2NORM) | 786 if(dbH->flags & O2_FLAG_L2NORM) |
789 unitNormAndInsertL2((double*)(((char *) dataBuf) + insertoffset), dbH->dim, numVectors, 1); // append | 787 unitNormAndInsertL2((double*)(((char *) dataBuf) + insertoffset), dbH->dim, numVectors, 1); // append |
790 | 788 |