-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from jponf/master
Add 64bit Min Sketch
- Loading branch information
Showing
8 changed files
with
133 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ python: | |
- "3.4" | ||
- "3.5" | ||
- "3.6" | ||
- "3.7" | ||
- "3.7.13" | ||
|
||
install: | ||
- pip install -r requirements.txt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
//----------------------------------------------------------------------------- | ||
// Author: Josep Pon Farreny <jponfarreny@gmail.com.com> | ||
// Copyright (C) 2017 Rare Technologies | ||
// | ||
// This code is distributed under the terms and conditions | ||
// from the MIT License (MIT). | ||
|
||
#ifndef _CMS64_CONSERVATIE_H_ | ||
#define _CMS64_CONSERVATIE_H_ | ||
|
||
#define CMS_TYPE CMS64_Conservative | ||
#define CMS_TYPE_STRING "CMS64_Conservative" | ||
#define CMS_CELL_TYPE uint64_t | ||
|
||
#include "cms_common.h" | ||
|
||
static inline int CMS_VARIANT(should_inc)(CMS_CELL_TYPE value) | ||
{ | ||
return 1; | ||
} | ||
|
||
static inline long long CMS_VARIANT(decode)(CMS_CELL_TYPE value) | ||
{ | ||
return value; | ||
} | ||
|
||
static inline CMS_CELL_TYPE CMS_VARIANT(_merge_value)(CMS_CELL_TYPE v1, CMS_CELL_TYPE v2, uint32_t merge_seed) | ||
{ | ||
return v1 + v2; | ||
} | ||
|
||
#undef CMS_TYPE | ||
#undef CMS_TYPE_STRING | ||
#undef CMS_CELL_TYPE | ||
|
||
#endif /* _CMS64_CONSERVATIE_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters