/
lasersquad
/
LogEngine2
Обзор
Документация
Войти
/
lasersquad
/
LogEngine2
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
external/cppunit/portability/FloatingPoint.h
24 строки
538 B
lasersquad0
init
24 янв 2024, 00:12
24 янв 2024, 00:12
8cf8180
Код
Авторство
О чём код?
#ifndef CPPUNIT_PORTABILITY_FLOATINGPOINT_H_INCLUDED #define CPPUNIT_PORTABILITY_FLOATINGPOINT_H_INCLUDED #include <cppunit/Portability.h> #include <cmath> CPPUNIT_NS_BEGIN inline bool floatingPointIsUnordered( double x ) { return std::isnan(x); } /// \brief Tests if a floating-point is finite. /// @return \c true if x is neither a NaN, nor +inf, nor -inf, \c false otherwise. inline int floatingPointIsFinite( double x ) { return std::isfinite(x); } CPPUNIT_NS_END #endif // CPPUNIT_PORTABILITY_FLOATINGPOINT_H_INCLUDED