void FileListModel::RemoveFile( HashType hash ) { int fileIdx = hashToIndex( hash ); beginRemoveRows( QModelIndex(), fileIdx, fileIdx ); FileReceivedModel * fileToDelete = m_files.takeAt( fileIdx ); endRemoveRows(); delete fileToDelete; }
/*-------------------------------------------------------------------------*/ void ntproba_find(void *hsh_, void *tbl_, void *el_) { hash_t* hsh = hsh_; table_t* tbl = tbl_; ophel_t* el = el_; proba_info *proba = tbl->param; uchar_t* hash = hsh->hash; ophstat_t* stat = el->stat; uint64_t end; uint32_t idx = tbl->idx; uint32_t nbColumn = tbl->ncols; uint32_t startColumn = el->col; uint32_t power2 = proba->power2; end = hashToIndex(proba->array, proba->mdpw, proba->mis, (unsigned int*)hash, startColumn, nbColumn, power2, idx, nbColumn); stat->hredux += nbColumn-startColumn-1; el->prefix = end >> (power2 - proba->nbBitIndex); el->postfix = end & ((uint64_t)0xffffffffffffffff >> (64 + proba->nbBitIndex - power2)); }