]> git.pld-linux.org Git - packages/highway.git/blob - highway-float16.patch
- float16 patch to fix x86 build with gcc 12+ and sse2 not enabled
[packages/highway.git] / highway-float16.patch
1 --- highway-1.0.6/hwy/base.h.orig       2023-08-11 15:54:08.000000000 +0200
2 +++ highway-1.0.6/hwy/base.h    2023-08-21 20:19:20.042867861 +0200
3 @@ -381,7 +381,7 @@ using float16_t = __fp16;
4  //    which is missing __extendhfsf2.
5  #elif (                                                                        \
6      (HWY_ARCH_RVV && defined(__riscv_zvfh) && HWY_COMPILER_CLANG) ||           \
7 -    (HWY_ARCH_X86 && ((HWY_COMPILER_CLANG >= 1600 && !HWY_COMPILER_CLANGCL) || \
8 +    (HWY_ARCH_X86 && defined(__sse2__) && ((HWY_COMPILER_CLANG >= 1600 && !HWY_COMPILER_CLANGCL) || \
9                        HWY_COMPILER_GCC_ACTUAL >= 1200)))
10  using float16_t = _Float16;
11  // 3) Otherwise emulate
This page took 0.051687 seconds and 3 git commands to generate.