mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-05-19 03:21:18 +00:00
pkg/highway: upgrade to fix compilation issues on LLVM18
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user