You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datasketches.apache.org by al...@apache.org on 2023/05/01 17:37:07 UTC
[datasketches-cpp] branch rm_unused created (now 86a22bf)
This is an automated email from the ASF dual-hosted git repository.
alsay pushed a change to branch rm_unused
in repository https://gitbox.apache.org/repos/asf/datasketches-cpp.git
at 86a22bf removed unused method
This branch includes the following new commits:
new 86a22bf removed unused method
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org
[datasketches-cpp] 01/01: removed unused method
Posted by al...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
alsay pushed a commit to branch rm_unused
in repository https://gitbox.apache.org/repos/asf/datasketches-cpp.git
commit 86a22bf6d5f01359652384f4467f06f5adaaa20a
Author: AlexanderSaydakov <Al...@users.noreply.github.com>
AuthorDate: Mon May 1 10:36:56 2023 -0700
removed unused method
---
hll/include/HllUtil.hpp | 12 ------------
1 file changed, 12 deletions(-)
diff --git a/hll/include/HllUtil.hpp b/hll/include/HllUtil.hpp
index 2096e3e..b81c014 100644
--- a/hll/include/HllUtil.hpp
+++ b/hll/include/HllUtil.hpp
@@ -124,8 +124,6 @@ public:
static uint32_t pair(uint32_t slotNo, uint8_t value);
static uint32_t getLow26(uint32_t coupon);
static uint8_t getValue(uint32_t coupon);
- static double invPow2(uint8_t e);
- static uint8_t ceilingPowerOf2(uint32_t n);
static uint8_t simpleIntLog2(uint32_t n); // n must be power of 2
static uint8_t computeLgArrInts(hll_mode mode, uint32_t count, uint8_t lgConfigK);
static double getRelErr(bool upperBound, bool unioned, uint8_t lgConfigK, uint8_t numStdDev);
@@ -204,16 +202,6 @@ inline uint8_t HllUtil<A>::getValue(uint32_t coupon) {
return coupon >> hll_constants::KEY_BITS_26;
}
-template<typename A>
-inline double HllUtil<A>::invPow2(uint8_t e) {
- union {
- long long longVal;
- double doubleVal;
- } conv;
- conv.longVal = (1023L - e) << 52;
- return conv.doubleVal;
-}
-
template<typename A>
inline uint8_t HllUtil<A>::simpleIntLog2(uint32_t n) {
if (n == 0) {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org