alice-sdf 1.9.2

ALICE-SDF: 3D/Spatial Data Specialist — Store laws, not polygons. GLSL/WGSL/HLSL transpile, SVO, GPU marching cubes, texture-fit, procedural CSG. Bridges to alice-codec/physics/asp/cache/font are available via GitHub path dep only in 1.7.7 (scheduled restoration in 1.8.0 once transitive deps publish).
Documentation
//! Platform-specific SIMD configuration for Cranelift JIT
//!
//! Isolates architecture-dependent settings to enable future
//! x86_64 (AVX2) and aarch64 (NEON) specialization.
//!
//! Author: Moroya Sakamoto

use cranelift_codegen::settings::Builder as FlagBuilder;
#[cfg(target_arch = "x86_64")]
use cranelift_codegen::settings::Configurable;

/// Configure Cranelift flags for the host platform's SIMD capabilities.
///
/// On x86_64, enables the `enable_simd` flag for AVX/SSE instruction generation.
/// On aarch64, NEON is available by default via Cranelift's native ISA.
#[allow(clippy::needless_pass_by_ref_mut)]
pub fn configure_simd_flags(flag_builder: &mut FlagBuilder) {
    #[cfg(target_arch = "x86_64")]
    {
        let _ = flag_builder.set("enable_simd", "true");
    }

    #[cfg(target_arch = "aarch64")]
    {
        // NEON is enabled by default on AArch64 via cranelift_native::builder().
        // Future: add SVE/SVE2 flags when Cranelift supports them.
        let _ = flag_builder;
    }
}