duckdb 0.8.1-dev416.0 → 0.8.1-dev425.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
#ifndef DUCKDB_VERSION
|
2
|
-
#define DUCKDB_VERSION "0.8.1-
|
2
|
+
#define DUCKDB_VERSION "0.8.1-dev425"
|
3
3
|
#endif
|
4
4
|
#ifndef DUCKDB_SOURCE_ID
|
5
|
-
#define DUCKDB_SOURCE_ID "
|
5
|
+
#define DUCKDB_SOURCE_ID "f519703700"
|
6
6
|
#endif
|
7
7
|
#include "duckdb/function/table/system_functions.hpp"
|
8
8
|
#include "duckdb/main/database.hpp"
|
@@ -112,35 +112,29 @@ struct CountZeros<uint64_t> {
|
|
112
112
|
template <>
|
113
113
|
struct CountZeros<hugeint_t> {
|
114
114
|
inline static int Leading(hugeint_t value) {
|
115
|
-
|
115
|
+
const uint64_t upper = (uint64_t)value.upper;
|
116
|
+
const uint64_t lower = value.lower;
|
117
|
+
|
118
|
+
if (upper) {
|
119
|
+
return __builtin_clzll(upper);
|
120
|
+
} else if (lower) {
|
121
|
+
return 64 + __builtin_clzll(lower);
|
122
|
+
} else {
|
116
123
|
return 128;
|
117
124
|
}
|
118
|
-
|
119
|
-
uint64_t upper = (uint64_t)value.upper;
|
120
|
-
uint64_t lower = value.lower;
|
121
|
-
|
122
|
-
int res = __builtin_clzll(upper);
|
123
|
-
if (res == 64) {
|
124
|
-
res += __builtin_clzll(lower);
|
125
|
-
}
|
126
|
-
|
127
|
-
return res;
|
128
125
|
}
|
129
126
|
|
130
127
|
inline static int Trailing(hugeint_t value) {
|
131
|
-
|
128
|
+
const uint64_t upper = (uint64_t)value.upper;
|
129
|
+
const uint64_t lower = value.lower;
|
130
|
+
|
131
|
+
if (lower) {
|
132
|
+
return __builtin_ctzll(lower);
|
133
|
+
} else if (upper) {
|
134
|
+
return 64 + __builtin_ctzll(upper);
|
135
|
+
} else {
|
132
136
|
return 128;
|
133
137
|
}
|
134
|
-
|
135
|
-
uint64_t upper = (uint64_t)value.upper;
|
136
|
-
uint64_t lower = value.lower;
|
137
|
-
|
138
|
-
int res = __builtin_ctzll(lower);
|
139
|
-
if (res == 64) {
|
140
|
-
res += __builtin_ctzll(upper);
|
141
|
-
}
|
142
|
-
|
143
|
-
return res;
|
144
138
|
}
|
145
139
|
};
|
146
140
|
|