GCC Code Coverage Report


Directory: include/polyfloat/
File: include/polyfloat/types/triple_real.hpp
Date: 2026-11-09 15:28:50
Exec Total Coverage
Lines: 5 5 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 triple_real_t
24 //! @brief Type alias for triple_real numbers
25 //!
26 //! Triple_Real numbers are implemented as Poly Float numbers of dimension 3.
27 //====================================================================================================================
28 template<eve::floating_value T> using triple_real_t = as_polyfloat_n_t<3, T>;
29
30 namespace _
31 {
32 11030364 template<eve::floating_value T> triple_real_t<T> from_triple(T h, T m, T l)
33 {
34 11030364 triple_real_t<T> z(h);
35 11030364 md(z) = m;
36 11030364 lo(z) = l;
37 11030364 return z;
38 }
39 }
40
41 //====================================================================================================================
42 //! @}
43 //====================================================================================================================
44 }
45