tobogganSe connecter

packages

The Louise packages, each released on its own

Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.

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