Skip to content

Commit 6d2c691

Browse files
committed
Fix ARM build
1 parent 68060fa commit 6d2c691

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

simd/ninja-simd.cpp

+6-2
Original file line numberDiff line numberDiff line change
@@ -450,8 +450,12 @@ static bool is_unescaped_dollar(char *begin, char *pos) {
450450
#ifdef __aarch64__
451451
using SIMDVec = uint8x16_t;
452452

453+
static SIMDVec vec_load(char *c) {
454+
return *(SIMDVec *)c;
455+
}
456+
453457
static SIMDVec vec_dup(uint8_t c) {
454-
return vdupq_n_u8(c);
458+
return vdupq_n_u8(c);
455459
}
456460

457461
static SIMDVec vec_eq(SIMDVec v1, SIMDVec v2) {
@@ -476,7 +480,7 @@ __attribute__((noinline)) SIMDVec first_all_ones_mask_identifier() {
476480
}
477481

478482
static uint8_t first_all_ones(SIMDVec v, SIMDVec mask_identifier) {
479-
return 16 - vmaxvq_u8(vandq_u8(v, identifier));
483+
return 16 - vmaxvq_u8(vandq_u8(v, mask_identifier));
480484
}
481485

482486
static bool has_all_ones(SIMDVec v) {

0 commit comments

Comments
 (0)