feat: add CheckIsInf & CheckIsNan.cmake
refactor: clean up