12#ifndef ARCANE_UTILS_LIMITS_H
13#define ARCANE_UTILS_LIMITS_H
17#include "arcane/utils/StdHeader.h"
72 ARCCORE_HOST_DEVICE
static constexpr unsigned int precision() {
return 1; }
73 ARCCORE_HOST_DEVICE
static constexpr unsigned int maxDigit() {
return FLT_DIG; }
74 ARCCORE_HOST_DEVICE
static constexpr float epsilon() {
return FLT_EPSILON; }
75 ARCCORE_HOST_DEVICE
static constexpr float nearlyEpsilon() {
return FLT_EPSILON * 10.0f; }
76 ARCCORE_HOST_DEVICE
static constexpr float maxValue() {
return FLT_MAX; }
77 ARCCORE_HOST_DEVICE
static constexpr float zero() {
return 0.0f; }
96 ARCCORE_HOST_DEVICE
static constexpr unsigned int precision() {
return 2; }
97 ARCCORE_HOST_DEVICE
static constexpr unsigned int maxDigit() {
return DBL_DIG; }
98 ARCCORE_HOST_DEVICE
static constexpr double epsilon() {
return DBL_EPSILON; }
99 ARCCORE_HOST_DEVICE
static constexpr double nearlyEpsilon() {
return DBL_EPSILON * 10.0; }
100 ARCCORE_HOST_DEVICE
static constexpr double maxValue() {
return DBL_MAX; }
101 ARCCORE_HOST_DEVICE
static constexpr double zero() {
return 0.0; }
123 ARCCORE_HOST_DEVICE
static constexpr unsigned int precision() {
return 3; }
124 ARCCORE_HOST_DEVICE
static constexpr unsigned int maxDigit() {
return LDBL_DIG; }
125 ARCCORE_HOST_DEVICE
static constexpr long double epsilon() {
return LDBL_EPSILON; }
126 ARCCORE_HOST_DEVICE
static constexpr long double nearlyEpsilon() {
return LDBL_EPSILON * 10.0; }
127 ARCCORE_HOST_DEVICE
static constexpr long double maxValue() {
return LDBL_MAX; }
128 ARCCORE_HOST_DEVICE
static constexpr long double zero() {
return 0.0l; }
131#ifdef ARCANE_REAL_USE_APFLOAT
151 ARCCORE_HOST_DEVICE
static constexpr unsigned int precision() {
return 3; }
152 ARCCORE_HOST_DEVICE
static constexpr unsigned int maxDigit() {
return 35; }
153 ARCCORE_HOST_DEVICE
static constexpr apfloat epsilon() {
return 1e-30; }
154 ARCCORE_HOST_DEVICE
static constexpr apfloat nearlyEpsilon() {
return 1e-28; }
155 ARCCORE_HOST_DEVICE
static constexpr apfloat maxValue() {
return apfloat(
"1e1000"); }
156 ARCCORE_HOST_DEVICE
static constexpr apfloat zero() {
return apfloat(
"0.0"); }
TrueType _IsFloatType
Indicates that the instantiation is for a floating-point type.
TrueType _IsFloatType
Indicates that the instantiation is for a floating-point type.
TrueType _IsFloatType
Indicates that the instantiation is for a floating-point type.
Information about the floating-point type.
FalseType _IsFloatType
Indicates if the instantiation is for a floating-point type.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --