pkg/highway: upgrade to fix compilation issues on LLVM18

This commit is contained in:
Mitchell Hashimoto
2025-03-12 10:27:20 -07:00
parent 7e9be00924
commit 601acf4059
6 changed files with 28 additions and 6 deletions

View File

@@ -29,6 +29,7 @@ pub fn init(b: *std.Build, deps: *const SharedDeps) !GhosttyXCFramework {
b,
b.resolveTargetQuery(.{
.cpu_arch = .aarch64,
.cpu_model = .native,
.os_tag = .ios,
.os_version_min = Config.osVersionMin(.ios),
.abi = .simulator,

View File

@@ -70,7 +70,7 @@ size_t IndexOfImpl(D d, T needle, const T* HWY_RESTRICT input, size_t count) {
using D1 = decltype(d1);
// Get an equally sized needle vector with only one lane.
const hn::Vec<D1> needle1 = Set(d1, GetLane(needle_vec));
const hn::Vec<D1> needle1 = Set(d1, hn::GetLane(needle_vec));
// Go through the remaining elements and do similar logic to
// the previous loop to find any matches.

View File

@@ -103,7 +103,7 @@ size_t DecodeUTF8UntilControlSeqImpl(D d,
if (i != count) {
const hn::CappedTag<T, 1> d1;
using D1 = decltype(d1);
const hn::Vec<D1> esc1 = Set(d1, GetLane(esc_vec));
const hn::Vec<D1> esc1 = Set(d1, hn::GetLane(esc_vec));
for (; i < count; ++i) {
const hn::Vec<D1> input_vec = hn::LoadU(d1, input + i);
const auto esc_idx = IndexOfChunk(d1, esc1, input_vec);