check both c++11/c99 maths