0012-third-party-highway-src.patch 941 B

12345678910111213141516171819202122
  1. diff --git a/hwy/base.h b/hwy/base.h
  2. index d87eb34..db5df58 100644
  3. --- a/hwy/base.h
  4. +++ b/hwy/base.h
  5. @@ -319,7 +319,7 @@ static constexpr HWY_MAYBE_UNUSED size_t kMaxVectorSize = 64; // AVX-512
  6. #elif HWY_ARCH_RVV
  7. // Not actually an upper bound on the size, but this value prevents crossing a
  8. // 4K boundary (relevant on Andes).
  9. -static constexpr HWY_MAYBE_UNUSED size_t kMaxVectorSize = 4096;
  10. +static constexpr HWY_MAYBE_UNUSED size_t kMaxVectorSize = 64;
  11. #define HWY_ALIGN_MAX alignas(8) // only elements need be aligned
  12. #else
  13. static constexpr HWY_MAYBE_UNUSED size_t kMaxVectorSize = 16;
  14. @@ -333,7 +333,7 @@ static constexpr HWY_MAYBE_UNUSED size_t kMaxVectorSize = 16;
  15. // by concatenating base type and bits.
  16. // RVV already has a builtin type and the GCC intrinsics require it.
  17. -#if HWY_ARCH_RVV && HWY_COMPILER_GCC
  18. +#if HWY_ARCH_RVV && HWY_COMPILER_GCC && 0
  19. #define HWY_NATIVE_FLOAT16 1
  20. #else
  21. #define HWY_NATIVE_FLOAT16 0