// fastlane_direct_env_box.c - Phase 19-1: FastLane Direct Path ENV Control (implementation) #include "fastlane_direct_env_box.h" #include #include _Atomic int g_fastlane_direct_enabled = -1; // Refresh cached ENV flag from environment variable // Called during benchmark ENV reloads to pick up runtime changes void fastlane_direct_env_refresh_from_env(void) { const char* e = getenv("HAKMEM_FASTLANE_DIRECT"); int enable = (e && *e && *e != '0') ? 1 : 0; atomic_store_explicit(&g_fastlane_direct_enabled, enable, memory_order_relaxed); }