File Coverage

/usr/local/lib/perl5/site_perl/5.26.1/x86_64-linux/auto/share/dist/Alien-Kiwisolver/include/kiwi/util.h
Criterion Covered Total %
statement 3 3 100.0
branch 2 2 100.0
condition n/a
subroutine n/a
pod n/a
total 5 5 100.0


line stmt bran cond sub pod time code
1             /*-----------------------------------------------------------------------------
2             | Copyright (c) 2013-2017, Nucleic Development Team.
3             |
4             | Distributed under the terms of the Modified BSD License.
5             |
6             | The full license is in the file LICENSE, distributed with this software.
7             |----------------------------------------------------------------------------*/
8             #pragma once
9              
10             namespace kiwi
11             {
12              
13             namespace impl
14             {
15              
16 9581996           inline bool nearZero(double value)
17             {
18 9581996           const double eps = 1.0e-8;
19 9581996 100         return value < 0.0 ? -value < eps : value < eps;
20             }
21              
22             } // namespace impl
23              
24             } // namespace kiwi