Notes


Spec 2: SH4 Math (shachi/sh4math.h)

Problem

KOS has dc/fmath.h (basic FSRRA/FSCA wrappers) and dc/matrix.h (XMTRX operations). Moopthehedgehog’s DreamHAL sh4_math.h (public domain, 2020) provides comprehensive FTRV/FIPR/FSCA intrinsics with proper pipeline hazard management. We need to decide: wrap, adopt, or compose.