Line | Source Code | Coverage |
---|
1 | /**************************************************************************** | - |
2 | ** | - |
3 | ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). | - |
4 | ** Contact: http://www.qt-project.org/legal | - |
5 | ** | - |
6 | ** This file is part of the QtCore module of the Qt Toolkit. | - |
7 | ** | - |
8 | ** $QT_BEGIN_LICENSE:LGPL$ | - |
9 | ** Commercial License Usage | - |
10 | ** Licensees holding valid commercial Qt licenses may use this file in | - |
11 | ** accordance with the commercial license agreement provided with the | - |
12 | ** Software or, alternatively, in accordance with the terms contained in | - |
13 | ** a written agreement between you and Digia. For licensing terms and | - |
14 | ** conditions see http://qt.digia.com/licensing. For further information | - |
15 | ** use the contact form at http://qt.digia.com/contact-us. | - |
16 | ** | - |
17 | ** GNU Lesser General Public License Usage | - |
18 | ** Alternatively, this file may be used under the terms of the GNU Lesser | - |
19 | ** General Public License version 2.1 as published by the Free Software | - |
20 | ** Foundation and appearing in the file LICENSE.LGPL included in the | - |
21 | ** packaging of this file. Please review the following information to | - |
22 | ** ensure the GNU Lesser General Public License version 2.1 requirements | - |
23 | ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. | - |
24 | ** | - |
25 | ** In addition, as a special exception, Digia gives you certain additional | - |
26 | ** rights. These rights are described in the Digia Qt LGPL Exception | - |
27 | ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. | - |
28 | ** | - |
29 | ** GNU General Public License Usage | - |
30 | ** Alternatively, this file may be used under the terms of the GNU | - |
31 | ** General Public License version 3.0 as published by the Free Software | - |
32 | ** Foundation and appearing in the file LICENSE.GPL included in the | - |
33 | ** packaging of this file. Please review the following information to | - |
34 | ** ensure the GNU General Public License version 3.0 requirements will be | - |
35 | ** met: http://www.gnu.org/copyleft/gpl.html. | - |
36 | ** | - |
37 | ** | - |
38 | ** $QT_END_LICENSE$ | - |
39 | ** | - |
40 | ****************************************************************************/ | - |
41 | | - |
42 | #include "qnumeric.h" | - |
43 | #include "qnumeric_p.h" | - |
44 | | - |
45 | QT_BEGIN_NAMESPACE | - |
46 | | - |
47 | /*! | - |
48 | Returns true if the double \a {d} is equivalent to infinity. | - |
49 | \relates <QtGlobal> | - |
50 | */ | - |
51 | Q_CORE_EXPORT bool qIsInf(double d) { return qt_is_inf(d); } executed: return qt_is_inf(d); Execution Count:34 | 34 |
52 | | - |
53 | /*! | - |
54 | Returns true if the double \a {d} is not a number (NaN). | - |
55 | \relates <QtGlobal> | - |
56 | */ | - |
57 | Q_CORE_EXPORT bool qIsNaN(double d) { return qt_is_nan(d); } executed: return qt_is_nan(d); Execution Count:40133 | 40133 |
58 | | - |
59 | /*! | - |
60 | Returns true if the double \a {d} is a finite number. | - |
61 | \relates <QtGlobal> | - |
62 | */ | - |
63 | Q_CORE_EXPORT bool qIsFinite(double d) { return qt_is_finite(d); } executed: return qt_is_finite(d); Execution Count:3 | 3 |
64 | | - |
65 | /*! | - |
66 | Returns true if the float \a {f} is equivalent to infinity. | - |
67 | \relates <QtGlobal> | - |
68 | */ | - |
69 | Q_CORE_EXPORT bool qIsInf(float f) { return qt_is_inf(f); } executed: return qt_is_inf(f); Execution Count:11 | 11 |
70 | | - |
71 | /*! | - |
72 | Returns true if the float \a {f} is not a number (NaN). | - |
73 | \relates <QtGlobal> | - |
74 | */ | - |
75 | Q_CORE_EXPORT bool qIsNaN(float f) { return qt_is_nan(f); } executed: return qt_is_nan(f); Execution Count:18 | 18 |
76 | | - |
77 | /*! | - |
78 | Returns true if the float \a {f} is a finite number. | - |
79 | \relates <QtGlobal> | - |
80 | */ | - |
81 | Q_CORE_EXPORT bool qIsFinite(float f) { return qt_is_finite(f); } never executed: return qt_is_finite(f); | 0 |
82 | | - |
83 | /*! | - |
84 | Returns the bit pattern of a signalling NaN as a double. | - |
85 | \relates <QtGlobal> | - |
86 | */ | - |
87 | Q_CORE_EXPORT double qSNaN() { return qt_snan(); } executed: return qt_snan(); Execution Count:21 | 21 |
88 | | - |
89 | /*! | - |
90 | Returns the bit pattern of a quiet NaN as a double. | - |
91 | \relates <QtGlobal> | - |
92 | */ | - |
93 | Q_CORE_EXPORT double qQNaN() { return qt_qnan(); } executed: return qt_qnan(); Execution Count:64 | 64 |
94 | | - |
95 | /*! | - |
96 | Returns the bit pattern for an infinite number as a double. | - |
97 | \relates <QtGlobal> | - |
98 | */ | - |
99 | Q_CORE_EXPORT double qInf() { return qt_inf(); } executed: return qt_inf(); Execution Count:84 | 84 |
100 | | - |
101 | | - |
102 | QT_END_NAMESPACE | - |
103 | | - |
| | |