]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/math/test/compile_test/ccmath_round_incl_test.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / math / test / compile_test / ccmath_round_incl_test.cpp
1 // (C) Copyright Matt Borland 2021.
2 // Use, modification and distribution are subject to the
3 // Boost Software License, Version 1.0. (See accompanying file
4 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6 #include <boost/math/ccmath/round.hpp>
7 #include "test_compile_result.hpp"
8
9 void compile_and_link_test()
10 {
11 // round
12 check_result<float>(boost::math::ccmath::round(1.0f));
13 check_result<double>(boost::math::ccmath::round(1.0));
14 #ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
15 check_result<long double>(boost::math::ccmath::round(1.0l));
16 #endif
17
18 // lround
19 check_result<long>(boost::math::ccmath::lround(1.0f));
20 check_result<long>(boost::math::ccmath::lround(1.0));
21 #ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
22 check_result<long>(boost::math::ccmath::lround(1.0l));
23 #endif
24
25 // llround
26 check_result<long long>(boost::math::ccmath::llround(1.0f));
27 check_result<long long>(boost::math::ccmath::llround(1.0));
28 #ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
29 check_result<long long>(boost::math::ccmath::llround(1.0l));
30 #endif
31 }