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 2019/11/01 02:06:49 UTC

[incubator-datasketches-cpp] 01/03: removed unnecessary code

This is an automated email from the ASF dual-hosted git repository.

alsay pushed a commit to branch cpc_template
in repository https://gitbox.apache.org/repos/asf/incubator-datasketches-cpp.git

commit eddcdd80f33d6dd09acc5756fc898bfb2c292f8c
Author: AlexanderSaydakov <Al...@users.noreply.github.com>
AuthorDate: Thu Oct 31 19:01:00 2019 -0700

    removed unnecessary code
---
 cpc/include/counter_of_zeros.hpp | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/cpc/include/counter_of_zeros.hpp b/cpc/include/counter_of_zeros.hpp
index b89a6b7..c0a65ba 100644
--- a/cpc/include/counter_of_zeros.hpp
+++ b/cpc/include/counter_of_zeros.hpp
@@ -74,7 +74,7 @@ static const uint64_t FCLZ_MASK_08 = 0x00000000000000ff;
 
 static inline uint8_t count_leading_zeros_in_u64(uint64_t input) {
   if (input > FCLZ_MASK_56)
-    return  0 + byte_leading_zeros_table[(input >> 56) & FCLZ_MASK_08];
+    return      byte_leading_zeros_table[(input >> 56) & FCLZ_MASK_08];
   if (input > FCLZ_MASK_48)
     return  8 + byte_leading_zeros_table[(input >> 48) & FCLZ_MASK_08];
   if (input > FCLZ_MASK_40)
@@ -87,8 +87,7 @@ static inline uint8_t count_leading_zeros_in_u64(uint64_t input) {
     return 40 + byte_leading_zeros_table[(input >> 16) & FCLZ_MASK_08];
   if (input > FCLZ_MASK_08)
     return 48 + byte_leading_zeros_table[(input >>  8) & FCLZ_MASK_08];
-  if (1)
-    return 56 + byte_leading_zeros_table[(input >>  0) & FCLZ_MASK_08];
+    return 56 + byte_leading_zeros_table[(input      ) & FCLZ_MASK_08];
 }
 
 static inline uint8_t count_trailing_zeros_in_u64(uint64_t input) {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org