Skip to content

Commit 092193f

Browse files
author
Mattia Montanari
committed
not really
1 parent 8d440a4 commit 092193f

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
// OpenGJK SIMD Compile-Time Configuration Header
1+
// OpenGJK SIMD Configuration Header
22
//
3-
// This header MUST be included BEFORE any Highway headers (foreach_target.h).
4-
// It configures HWY_DISABLED_TARGETS to exclude incompatible SIMD targets.
3+
// This header is included before Highway headers for configuration.
4+
// Target selection is now done at runtime via opengjk_simd_init.h
5+
// using Highway's SetSupportedTargetsForTest() mechanism.
56
//
6-
// Runtime target selection is done separately via opengjk_simd_init.h.
7+
// This approach is future-proof and works on x86, ARM, and future architectures.
78

8-
#ifndef OPENGJK_SIMD_COMPILE_CONFIG_H_
9-
#define OPENGJK_SIMD_COMPILE_CONFIG_H_
9+
#ifndef OPENGJK_SIMD_CONFIG_H_
10+
#define OPENGJK_SIMD_CONFIG_H_
1011

1112
#include "hwy/detect_compiler_arch.h"
1213

@@ -17,8 +18,8 @@
1718
// here to ensure compile-time safety regardless of Highway version.
1819
#if HWY_ARCH_ARM_A64 && HWY_OS_APPLE
1920
#ifndef HWY_DISABLED_TARGETS
20-
// #define HWY_DISABLED_TARGETS (HWY_SVE | HWY_SVE2 | HWY_SVE_256 | HWY_SVE2_128)
21+
#define HWY_DISABLED_TARGETS (HWY_SVE | HWY_SVE2 | HWY_SVE_256 | HWY_SVE2_128)
2122
#endif
2223
#endif
2324

24-
#endif // OPENGJK_SIMD_COMPILE_CONFIG_H_
25+
#endif // OPENGJK_SIMD_CONFIG_H_

0 commit comments

Comments
 (0)