math: overflows in hard max are undefined