Skip to content

Commit

Permalink
[WiP] Allow crossing of 128-bit block boundaries on RVV/SVE
Browse files Browse the repository at this point in the history
This should be safe after Highway >= 1.1.0.
  • Loading branch information
kleisauke committed Apr 2, 2024
1 parent f1c47c6 commit 7f6278d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion libvips/convolution/convi_hwy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ vips_convi_uchar_hwy(VipsRegion *out_region, VipsRegion *ir, VipsRect *r,
#if HWY_TARGET != HWY_SCALAR
int32_t bo = VIPS_RECT_BOTTOM(r);

#if HWY_ARCH_RVV || (HWY_ARCH_ARM_A64 && HWY_TARGET <= HWY_SVE)
#if !defined(HAVE_HWY_1_1_0) && \
(HWY_ARCH_RVV || (HWY_ARCH_ARM_A64 && HWY_TARGET <= HWY_SVE))
/* Ensure we do not cross 128-bit block boundaries on RVV/SVE.
*/
const int32_t N = 16;
Expand Down
3 changes: 2 additions & 1 deletion libvips/resample/reducev_hwy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ vips_reducev_uchar_hwy(VipsPel *pout, VipsPel *pin,
#if HWY_TARGET != HWY_SCALAR
const auto l1 = lskip / sizeof(uint8_t);

#if HWY_ARCH_RVV || (HWY_ARCH_ARM_A64 && HWY_TARGET <= HWY_SVE)
#if !defined(HAVE_HWY_1_1_0) && \
(HWY_ARCH_RVV || (HWY_ARCH_ARM_A64 && HWY_TARGET <= HWY_SVE))
/* Ensure we do not cross 128-bit block boundaries on RVV/SVE.
*/
const int32_t N = 16;
Expand Down

0 comments on commit 7f6278d

Please sign in to comment.