iso_c variant
fixes #248 (riemann_compare branch)