Функции для определения равенства у чисел с плавающей точкой

This commit is contained in:
Andrei Astafev 2019-11-27 16:20:50 +03:00
parent cca2ab2f50
commit 26dd0ee858
3 changed files with 14 additions and 2 deletions

@ -1 +1 @@
Subproject commit c04395ef98c3973caf41a67de8263018d82c6c5e
Subproject commit 9952d8626933a1003f90395a90946934dd254f48

View File

@ -3,13 +3,22 @@ set(current_target math)
# Список файлов исходных текстов
set(current_target_sources
${CMAKE_CURRENT_SOURCE_DIR}/almost_equal_relative.cpp
${CMAKE_CURRENT_SOURCE_DIR}/almost_equal_relative_and_abs.cpp
${CMAKE_CURRENT_SOURCE_DIR}/almost_equal_ulps.cpp
${CMAKE_CURRENT_SOURCE_DIR}/almost_equal_ulps_and_abs.cpp
${CMAKE_CURRENT_SOURCE_DIR}/constants.cpp
)
# Список заголовочных файлов (используется для установки)
set(current_target_headers
${CMAKE_CURRENT_SOURCE_DIR}/all.hpp
${CMAKE_CURRENT_SOURCE_DIR}/almost_equal_relative.hpp
${CMAKE_CURRENT_SOURCE_DIR}/almost_equal_relative_and_abs.hpp
${CMAKE_CURRENT_SOURCE_DIR}/almost_equal_ulps.hpp
${CMAKE_CURRENT_SOURCE_DIR}/almost_equal_ulps_and_abs.hpp
${CMAKE_CURRENT_SOURCE_DIR}/constants.hpp
${CMAKE_CURRENT_SOURCE_DIR}/float_cmp_types.hpp
${CMAKE_CURRENT_SOURCE_DIR}/functions.hpp
${CMAKE_CURRENT_SOURCE_DIR}/radar.hpp
${CMAKE_CURRENT_SOURCE_DIR}/units.hpp
@ -54,4 +63,3 @@ install(FILES ${current_target_headers}
COMPONENT headers
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}/${current_target})
install(FILES ${CMAKE_BINARY_DIR}/${current_target}.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)

View File

@ -2,3 +2,7 @@
#include <myx/math/functions.hpp>
#include <myx/math/units.hpp>
#include <myx/math/radar.hpp>
#include <myx/math/almost_equal_relative_and_abs.hpp>
#include <myx/math/almost_equal_relative.hpp>
#include <myx/math/almost_equal_ulps_and_abs.hpp>
#include <myx/math/almost_equal_ulps.hpp>