File indexing completed on 2022-12-06 18:58:50

0001 /*
0002     SPDX-FileCopyrightText: 2013 Akarsh Simha <akarsh.simha@kdemail.net>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <limits>
0010 
0011 // The way of doing this in C++ 11. Leaving it here for future purposes.
0012 #if 0
0013 namespace NaN
0014 {
0015 constexpr double d = std::numeric_limits::quiet_NaN();
0016 constexpr float f = std::numeric_limits<float>::quiet_NaN();
0017 constexpr long double ld = std::numeric_limits<long double>::quiet_NaN();
0018 }
0019 #endif
0020 
0021 namespace NaN
0022 {
0023 const double d       = std::numeric_limits<double>::quiet_NaN();
0024 const float f        = std::numeric_limits<float>::quiet_NaN();
0025 const long double ld = std::numeric_limits<long double>::quiet_NaN();
0026 }