File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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_
You can’t perform that action at this time.
0 commit comments