// exp2.cpp — numerical double exp2 (wiring fallback) + P3 asset note. // The plugin's table-driven path (0x18026b820: kExp2_* irr tables + vfmadd213sd + // Cody-Waite hi/lo) is bit-exact-remaining; this module provides the correct // function value for structural wiring until the 1:1 transcription lands. #include "exp2.hpp" #include #include #include #include namespace exp2d { double exp2_dsp(double x) { if (std::isnan(x)) return x; if (x == 0.0) return 1.0; if (x == -std::numeric_limits::infinity()) return 0.0; if (x == std::numeric_limits::infinity()) return x; return std::exp2(x); } } // namespace exp2d