MySQL 8.4.2
Source Code Documentation
my_strtoll10.cc File Reference
#include "mysql/strings/my_strtoll10.h"
#include <climits>
#include <cstdint>
#include "my_sys.h"

Macros

#define MAX_NEGATIVE_NUMBER   ((unsigned long long)0x8000000000000000LL)
 
#define INIT_CNT   9
 
#define LFACTOR   1000000000ULL
 
#define LFACTOR1   10000000000ULL
 
#define LFACTOR2   100000000000ULL
 

Functions

long long my_strtoll10 (const char *nptr, const char **endptr, int *error)
 

Variables

static unsigned long lfactor [9]
 

Macro Definition Documentation

◆ INIT_CNT

#define INIT_CNT   9

◆ LFACTOR

#define LFACTOR   1000000000ULL

◆ LFACTOR1

#define LFACTOR1   10000000000ULL

◆ LFACTOR2

#define LFACTOR2   100000000000ULL

◆ MAX_NEGATIVE_NUMBER

#define MAX_NEGATIVE_NUMBER   ((unsigned long long)0x8000000000000000LL)

Function Documentation

◆ my_strtoll10()

long long my_strtoll10 ( const char *  nptr,
const char **  endptr,
int *  error 
)

Variable Documentation

◆ lfactor

unsigned long lfactor[9]
static
Initial value:
= {
1L, 10L, 100L, 1000L, 10000L, 100000L, 1000000L, 10000000L, 100000000L}