/* Builds the vendored StringZilla (vendor/stringzilla/c/stringzilla.c) * with every SIMD tier this architecture's compilers can emit; the * library picks among them at runtime (a constructor fills its dispatch * table from CPUID). The SZ_USE_* defines must reach that one * translation unit, and louise.toml's cflags cannot be per-architecture, * so they live here instead. The x86-64 tiers compile on every compiler * Louise requires (clang 13+, GCC 15+); on aarch64 NEON is baseline, and * SVE stays compile-detected (off with the default -march). */ #if defined(__x86_64__) #define SZ_USE_WESTMERE 1 #define SZ_USE_GOLDMONT 1 #define SZ_USE_HASWELL 1 #define SZ_USE_SKYLAKE 1 #define SZ_USE_ICE 1 #elif defined(__aarch64__) #define SZ_USE_NEON 1 #endif #define SZ_DEBUG 0 #define SZ_AVOID_LIBC 0 /* v4.6.3's serial kernels do deliberately misaligned 64-bit loads (raw * casts, UB by the letter of the standard; v5 aligns them). Louise runs * UBSan over its C boundary, so pay the serial fast path's small cost; * the SIMD kernels use loadu intrinsics either way. */ #define SZ_USE_MISALIGNED_LOADS 0 #include "../vendor/stringzilla/c/stringzilla.c"