MySQL 8.0.39
Source Code Documentation
my_strtoll10.cc File Reference
#include <limits.h>
#include <sys/types.h>
#include "m_string.h"
#include "my_inttypes.h"
#include "my_sys.h"

Macros

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

Functions

longlong 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   ((ulonglong)0x8000000000000000LL)

Function Documentation

◆ my_strtoll10()

longlong 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}