MySQL 8.0.39
Source Code Documentation
my_double2ulonglong.h File Reference

Utility functions for converting between ulonglong and double. More...

#include "my_inttypes.h"

Go to the source code of this file.

Macros

#define ulonglong2double(A)   ((double)(ulonglong)(A))
 
#define my_off_t2double(A)   ((double)(my_off_t)(A))
 
#define double2ulonglong(A)   ((ulonglong)(double)(A))
 

Variables

static constexpr double LLONG_MAX_DOUBLE = 9223372036854774784.0
 
static constexpr double ULLONG_MAX_DOUBLE = 18446744073709549568.0
 
static constexpr int64_t MAX_EXACT_INTEGER_DOUBLE = (1ULL << 53)
 
static constexpr int64_t MIN_EXACT_INTEGER_DOUBLE = -MAX_EXACT_INTEGER_DOUBLE
 
static constexpr int64_t MAX_EXACT_INTEGER_FLOAT = (1ULL << 23)
 
static constexpr int64_t MIN_EXACT_INTEGER_FLOAT = -MAX_EXACT_INTEGER_FLOAT
 

Detailed Description

Utility functions for converting between ulonglong and double.

Macro Definition Documentation

◆ double2ulonglong

#define double2ulonglong (   A)    ((ulonglong)(double)(A))

◆ my_off_t2double

#define my_off_t2double (   A)    ((double)(my_off_t)(A))

◆ ulonglong2double

#define ulonglong2double (   A)    ((double)(ulonglong)(A))

Variable Documentation

◆ LLONG_MAX_DOUBLE

constexpr double LLONG_MAX_DOUBLE = 9223372036854774784.0
staticconstexpr

◆ MAX_EXACT_INTEGER_DOUBLE

constexpr int64_t MAX_EXACT_INTEGER_DOUBLE = (1ULL << 53)
staticconstexpr

◆ MAX_EXACT_INTEGER_FLOAT

constexpr int64_t MAX_EXACT_INTEGER_FLOAT = (1ULL << 23)
staticconstexpr

◆ MIN_EXACT_INTEGER_DOUBLE

constexpr int64_t MIN_EXACT_INTEGER_DOUBLE = -MAX_EXACT_INTEGER_DOUBLE
staticconstexpr

◆ MIN_EXACT_INTEGER_FLOAT

constexpr int64_t MIN_EXACT_INTEGER_FLOAT = -MAX_EXACT_INTEGER_FLOAT
staticconstexpr

◆ ULLONG_MAX_DOUBLE

constexpr double ULLONG_MAX_DOUBLE = 18446744073709549568.0
staticconstexpr