Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Robert Nagy
authored and
Robert Nagy
committed
Feb 25, 2024
1 parent
3d66b62
commit 6166c62
Showing
2 changed files
with
10 additions
and
27 deletions.
There are no files selected for viewing
15 changes: 0 additions & 15 deletions
15
www/chromium/files/patch-third__party_perfetto_src_trace__processor_db_column.h
This file was deleted.
Oops, something went wrong.
22 changes: 10 additions & 12 deletions
22
...mium/files/patch-third__party_perfetto_src_trace__processor_db_column_numeric__storage.cc
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 |
---|---|---|
@@ -1,16 +1,14 @@ | ||
--- third_party/perfetto/src/trace_processor/db/column/numeric_storage.cc.orig 2024-02-23 21:04:38 UTC | ||
--- third_party/perfetto/src/trace_processor/db/column/numeric_storage.cc.orig 2024-02-25 20:08:06 UTC | ||
+++ third_party/perfetto/src/trace_processor/db/column/numeric_storage.cc | ||
@@ -494,8 +494,13 @@ BitVector NumericStorageBase::LinearSearchInternal(Fil | ||
} 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); | ||
@@ -39,7 +39,11 @@ namespace trace_processor { | ||
namespace column { | ||
namespace { | ||
|
||
+#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; | ||
+using NumericValue = std::variant<uint32_t, int32_t, int64_t, double>; | ||
+#else | ||
} else if (const auto* db = std::get_if<double>(&val)) { | ||
auto* start = static_cast<const double*>(data_) + range.start; | ||
using NumericValue = std::variant<uint32_t, int32_t, int64_t, double_t>; | ||
+#endif | ||
TypedLinearSearch(*db, start, op, builder); | ||
} else { | ||
PERFETTO_DFATAL("Invalid"); | ||
|
||
// Using the fact that binary operators in std are operators() of classes, we | ||
// can wrap those classes in variants and use them for std::visit in |