refine c99 math check