blob: a948ded56936fb206affc429e9618eb482639121 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
--- third_party/perfetto/src/trace_processor/db/storage/numeric_storage.cc.orig 2023-12-23 12:33:28 UTC
+++ third_party/perfetto/src/trace_processor/db/storage/numeric_storage.cc
@@ -251,8 +251,13 @@ BitVector NumericStorage::LinearSearchInternal(FilterO
} else if (const auto* i32 = std::get_if<int32_t>(&*val)) {
auto* start = static_cast<const int32_t*>(data_) + range.start;
TypedLinearSearch(*i32, start, op, builder);
+#if (defined(__OpenBSD__) || defined(__FreeBSD__)) && defined(__i386__)
+ } else if (const auto* db = std::get_if<long double>(&*val)) {
+ auto* start = static_cast<const long double*>(data_) + range.start;
+#else
} else if (const auto* db = std::get_if<double>(&*val)) {
auto* start = static_cast<const double*>(data_) + range.start;
+#endif
TypedLinearSearch(*db, start, op, builder);
} else {
PERFETTO_DFATAL("Invalid");
|