Skip to content

Commit

Permalink
removed GPL mentions
Browse files Browse the repository at this point in the history
  • Loading branch information
BenLangmead committed May 9, 2020
1 parent 324ff56 commit 8b0135c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 31 deletions.
8 changes: 5 additions & 3 deletions src/compact_hash.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@ struct CompactHashCell {
if (max_value < val)
errx(EX_SOFTWARE, "value len of %u too small for value of %llu",
(unsigned int) value_bits, (unsigned long long int) val);
data = (uint32_t) (MurmurHash3(key) >> 32);
data &= ~((1 << value_bits) - 1);
data |= val;
data = (uint32_t) (MurmurHash3(key) >> 32); // why the shift? why the hash?
data &= ~((1 << value_bits) - 1); // keep only high bits
data |= val; // OR in value
}

// value in the low bits
// hash of the key in the high bits
uint32_t data;
};

Expand Down
15 changes: 1 addition & 14 deletions src/hyperloglogplus.cc
Original file line number Diff line number Diff line change
@@ -1,20 +1,7 @@
/*
* Copyright 2017-2018, Florian Breitwieser
*
* This file is part of the KrakenUniq taxonomic sequence classification system.
*
* KrakenUniq is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* KrakenUniq is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Kraken. If not, see <http://www.gnu.org/licenses/>.
* This file was originally developed for the KrakenUniq taxonomic classification system.
*/


Expand Down
16 changes: 2 additions & 14 deletions src/hyperloglogplus.h
Original file line number Diff line number Diff line change
@@ -1,21 +1,9 @@
/*
* Copyright 2017-2018, Florian Breitwieser
*
* This file is part of the KrakenUniq taxonomic sequence classification system.
*
* KrakenUniq is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* KrakenUniq is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Kraken. If not, see <http://www.gnu.org/licenses/>.
* This file was originally developed for the KrakenUniq taxonomic classification system.
*/

/*
* Implementation of 64-bit HyperLogLog algorithm by Flajolet et al.,
* with sparse mode for increased precision with low cardinalities (Stefan Heule et al.), and
Expand Down

0 comments on commit 8b0135c

Please sign in to comment.