12#ifndef ARCANE_UTILS_LIMITS_H
13#define ARCANE_UTILS_LIMITS_H
17#include "arcane/utils/StdHeader.h"
66 ARCCORE_HOST_DEVICE
static constexpr unsigned int precision() {
return 1; }
67 ARCCORE_HOST_DEVICE
static constexpr unsigned int maxDigit() {
return FLT_DIG; }
68 ARCCORE_HOST_DEVICE
static constexpr float epsilon() {
return FLT_EPSILON; }
69 ARCCORE_HOST_DEVICE
static constexpr float nearlyEpsilon() {
return FLT_EPSILON*10.0f; }
70 ARCCORE_HOST_DEVICE
static constexpr float maxValue() {
return FLT_MAX; }
71 ARCCORE_HOST_DEVICE
static constexpr float zero() {
return 0.0f; }
86 ARCCORE_HOST_DEVICE
static constexpr unsigned int precision() {
return 2; }
87 ARCCORE_HOST_DEVICE
static constexpr unsigned int maxDigit() {
return DBL_DIG; }
88 ARCCORE_HOST_DEVICE
static constexpr double epsilon() {
return DBL_EPSILON; }
89 ARCCORE_HOST_DEVICE
static constexpr double nearlyEpsilon() {
return DBL_EPSILON*10.0; }
90 ARCCORE_HOST_DEVICE
static constexpr double maxValue() {
return DBL_MAX; }
91 ARCCORE_HOST_DEVICE
static constexpr double zero() {
return 0.0; }
109 ARCCORE_HOST_DEVICE
static constexpr unsigned int precision() {
return 3; }
110 ARCCORE_HOST_DEVICE
static constexpr unsigned int maxDigit() {
return LDBL_DIG; }
111 ARCCORE_HOST_DEVICE
static constexpr long double epsilon() {
return LDBL_EPSILON; }
112 ARCCORE_HOST_DEVICE
static constexpr long double nearlyEpsilon() {
return LDBL_EPSILON*10.0; }
113 ARCCORE_HOST_DEVICE
static constexpr long double maxValue() {
return LDBL_MAX; }
114 ARCCORE_HOST_DEVICE
static constexpr long double zero() {
return 0.0l; }
117#ifdef ARCANE_REAL_USE_APFLOAT
127class FloatInfo<apfloat>
133 ARCCORE_HOST_DEVICE
static constexpr unsigned int precision() {
return 3; }
134 ARCCORE_HOST_DEVICE
static constexpr unsigned int maxDigit() {
return 35; }
135 ARCCORE_HOST_DEVICE
static constexpr apfloat epsilon() {
return 1e-30; }
136 ARCCORE_HOST_DEVICE
static constexpr apfloat nearlyEpsilon() {
return 1e-28; }
137 ARCCORE_HOST_DEVICE
static constexpr apfloat maxValue() {
return apfloat(
"1e1000"); }
138 ARCCORE_HOST_DEVICE
static constexpr apfloat zero() {
return apfloat(
"0.0"); }
TrueType _IsFloatType
Indique que l'instantiation est pour un type flottant.
TrueType _IsFloatType
Indique que l'instantiation est pour un type flottant.
TrueType _IsFloatType
Indique que l'instantiation est pour un type flottant.
Informations sur le type flottant.
FalseType _IsFloatType
Indique si l'instantiation est pour un type flottant.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-