Coverage Report

Created: 2026-05-16 06:37

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/dcmtk/config/math.cc
Line
Count
Source
1
/*
2
 *
3
 *  Copyright (C) 2015-2025, OFFIS e.V.
4
 *  All rights reserved.  See COPYRIGHT file for details.
5
 *
6
 *  This software and supporting documentation were developed by
7
 *
8
 *    OFFIS e.V.
9
 *    R&D Division Health
10
 *    Escherweg 2
11
 *    D-26121 Oldenburg, Germany
12
 *
13
 *
14
 *  Module:  ofstd
15
 *
16
 *  Author:  Jan Schlamelcher
17
 *
18
 *  Purpose: Platform independent definition of basic functions declared
19
 *           in <math.h> resp. <cmath>.
20
 *
21
 */
22
23
24
#include "dcmtk/config/osconfig.h"    /* make sure OS specific configuration is included first */
25
26
#include <cfloat>
27
#include <cmath>
28
#include <climits>
29
#include <csignal>
30
#include <csetjmp>
31
#include <iostream>
32
33
#include "dcmtk/ofstd/oftypes.h"
34
#include "dcmtk/ofstd/ofstream.h"
35
36
#ifdef HAVE_IEEEFP_H
37
#include <ieeefp.h>
38
#endif
39
40
#ifdef HAVE_WINDOWS_H
41
#define WIN32_LEAN_AND_MEAN
42
#include <windows.h>
43
#endif
44
45
struct dcmtk_config_math
46
{
47
  static inline OFBool isnan( float f )
48
0
  {
49
0
    return STD_NAMESPACE isnan(f);
50
0
  }
51
52
  static inline OFBool isnan( double d )
53
0
  {
54
0
    return STD_NAMESPACE isnan(d);
55
0
  }
56
57
  static inline OFBool isinf( float f )
58
0
  {
59
0
    return STD_NAMESPACE isinf( f );
60
0
  }
61
62
  static inline OFBool isinf( double d )
63
0
  {
64
0
    return STD_NAMESPACE isinf( d );
65
0
  }
66
67
  static inline double sqrt( double d )
68
0
  {
69
0
    return STD_NAMESPACE sqrt(d);
70
0
  }
71
};