TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
std::numeric_limits< fmt::internal::DummyInt > Class Template Reference

#include <format.h>

Static Public Member Functions

template<typename T >
static bool isinfinity (T x)
 
template<typename T >
static bool isnotanumber (T x)
 
static bool isnegative (double x)
 

Member Function Documentation

template<typename T >
static bool std::numeric_limits< fmt::internal::DummyInt >::isinfinity ( x)
inlinestatic
320  {
321  using namespace fmt::internal;
322  // The resolution "priority" is:
323  // isinf macro > std::isinf > ::isinf > fmt::internal::isinf
324  if (check(sizeof(isinf(x)) == sizeof(bool) ||
325  sizeof(isinf(x)) == sizeof(int))) {
326  return isinf(x) != 0;
327  }
328  return !_finite(static_cast<double>(x));
329  }
DummyInt isinf(...)
Definition: format.h:297
Definition: format.h:286
G3D::int16 x
Definition: Vector2int16.h:37
DummyInt _finite(...)
Definition: format.h:298
T check(T value)
Definition: format.h:305

+ Here is the call graph for this function:

static bool std::numeric_limits< fmt::internal::DummyInt >::isnegative ( double  x)
inlinestatic
343  {
344  using namespace fmt::internal;
345  if (check(sizeof(signbit(x)) == sizeof(int)))
346  return signbit(x) != 0;
347  if (x < 0) return true;
348  if (!isnotanumber(x)) return false;
349  int dec = 0, sign = 0;
350  char buffer[2]; // The buffer size must be >= 2 or _ecvt_s will fail.
351  _ecvt_s(buffer, sizeof(buffer), x, 0, &dec, &sign);
352  return sign != 0;
353  }
DummyInt signbit(...)
Definition: format.h:295
static bool isnotanumber(T x)
Definition: format.h:333
Definition: format.h:286
G3D::int16 x
Definition: Vector2int16.h:37
T check(T value)
Definition: format.h:305
double sign(double fValue)
Definition: g3dmath.h:669
DummyInt _ecvt_s(...)
Definition: format.h:296

+ Here is the call graph for this function:

template<typename T >
static bool std::numeric_limits< fmt::internal::DummyInt >::isnotanumber ( x)
inlinestatic
333  {
334  using namespace fmt::internal;
335  if (check(sizeof(isnan(x)) == sizeof(bool) ||
336  sizeof(isnan(x)) == sizeof(int))) {
337  return isnan(x) != 0;
338  }
339  return _isnan(static_cast<double>(x)) != 0;
340  }
#define isnan
Definition: BoundingIntervalHierarchy.cpp:24
DummyInt _isnan(...)
Definition: format.h:300
Definition: format.h:286
G3D::int16 x
Definition: Vector2int16.h:37
T check(T value)
Definition: format.h:305

+ Here is the call graph for this function:


The documentation for this class was generated from the following file: