GameMath is a self-contained C math library derived from FreeBSD's msun that provides consistent floating-point results across platforms and compilers for networked games using lock-step simulation. It replaces platform libc math functions with software implementations prefixed with gm_ to ensure reproducible binary-level floating-point operations and prevent simulation desynchronization.