← board

crtl libm: correctly-rounded (or <1ulp) transcendentals — cbrt/log/pow/exp

Why it matters

JS number semantics make libm results user-visible strings; test-quickjs currently EXCLUDES these four from its byte-exact smoke. Fixing them lets the smoke cover the whole Math surface, and every other C corpus target inherits the accuracy.

Shape

Bring-up impls in math.c are series/iteration based. Options per function:

Done when

test-quickjs's smoke can include cbrt/log/pow/exp and stay byte-exact vs the gcc-built oracle.

Log