GCC Code Coverage Report


Directory: include/polyfloat/
File: include/polyfloat/types/double_real.hpp
Date: 2026-11-09 15:28:50
Exec Total Coverage
Lines: 4 4 100.0%
Functions: 6 6 100.0%
Branches: 0 0 -%

Line Branch Exec Source
1 //======================================================================================================================
2 /*
3 POLYFLOAT - Extended precision floating points
4 Copyright : POLYFLOAT Contributors & Maintainers
5 SPDX-License-Identifier: BSL-1.0
6 */
7 //======================================================================================================================
8 #pragma once
9
10 #include <eve/eve.hpp>
11 #include <polyfloat/types/polyfloat.hpp>
12 #include <polyfloat/types/traits.hpp>
13 #include <polyfloat/module/core/parts.hpp>
14
15 namespace plf
16 {
17 //====================================================================================================================
18 //! @addtogroup types
19 //! @{
20 //====================================================================================================================
21
22 //====================================================================================================================
23 //! @typedef double_real_t
24 //! @brief Type alias for double_real numbers
25 //!
26 //! Double_Real numbers are implemented as Poly Float numbers of dimension 2.
27 //====================================================================================================================
28 template<eve::floating_value T> using double_real_t = as_polyfloat_n_t<2, T>;
29
30 namespace _
31 {
32 7972901 template<eve::floating_value T> double_real_t<T> from_pair(T h, T l)
33 {
34 7972901 double_real_t<T> z(h);
35 7972901 lo(z) = l;
36 7972901 return z;
37 }
38 }
39 //====================================================================================================================
40 //! @}
41 //====================================================================================================================
42 }
43