[#2080] merge arithmetics.cpp