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.

Type
Definition: bloaty/third_party/protobuf/src/google/protobuf/type.pb.h:182
PREFIX
#define PREFIX
Definition: bloaty/third_party/protobuf/benchmarks/cpp/cpp_benchmark.cc:42


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:23