GCC Code Coverage Report


libs/base/src/base/
File: range.cc
Date: 2025-03-19 20:55:25
Lines:
7/7
100.0%
Functions:
2/2
100.0%
Branches:
0/0
-%

Line Branch Exec Source
1 #include "base/range.h"
2
3 namespace eu
4 {
5 float
6 10 from_01f(float lower_bound, float upper_bound, float value)
7 {
8 10 return value * (upper_bound - lower_bound) + lower_bound;
9 }
10
11 template <>
12 float
13 4 from_01(const R<float>& range, float value)
14 {
15 return from_01f
16 4 (
17 4 range.lower_bound,
18 4 range.upper_bound,
19 value
20 4 );
21 }
22 }
23
24