Namespaces | Macros | Functions
mathlimits.cc File Reference
#include <google/protobuf/stubs/mathlimits.h>
#include <google/protobuf/stubs/common.h>
Include dependency graph for mathlimits.cc:

Go to the source code of this file.

Namespaces

 google
 
 google::protobuf
 

Macros

#define DEF_FP_LIMITS(Type, PREFIX)
 

Functions

 google::protobuf::DEF_FP_LIMITS (long double, LDBL)
 

Macro Definition Documentation

◆ DEF_FP_LIMITS

#define DEF_FP_LIMITS (   Type,
  PREFIX 
)
Value:
const Type MathLimits<Type>::kPosMin = PREFIX##_MIN; \
const Type MathLimits<Type>::kPosMax = PREFIX##_MAX; \
const Type MathLimits<Type>::kMin = -MathLimits<Type>::kPosMax; \
const Type MathLimits<Type>::kMax = MathLimits<Type>::kPosMax; \
const Type MathLimits<Type>::kNegMin = -MathLimits<Type>::kPosMin; \
const Type MathLimits<Type>::kNegMax = -MathLimits<Type>::kPosMax; \
const Type MathLimits<Type>::kEpsilon = PREFIX##_EPSILON; \
/* 32 is 5 bits of mantissa error; should be adequate for common errors */ \
const Type MathLimits<Type>::kStdError = \
32 * (DBL_EPSILON * DBL_EPSILON > MathLimits<Type>::kEpsilon \
? DBL_EPSILON * DBL_EPSILON : MathLimits<Type>::kEpsilon); \
const Type MathLimits<Type>::kNaN = HUGE_VAL - HUGE_VAL; \
const Type MathLimits<Type>::kPosInf = HUGE_VAL; \
const Type MathLimits<Type>::kNegInf = -HUGE_VAL;

Definition at line 67 of file mathlimits.cc.

PREFIX
#define PREFIX
Definition: cpp_benchmark.cc:42
Type
Definition: type.pb.h:182


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:03