php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
strtod.c File Reference
#include <stdint.h>
#include <math.h>
#include "lexbor/core/diyfp.h"
#include "lexbor/core/strtod.h"

Go to the source code of this file.

Macros

#define LEXBOR_DECIMAL_POWER_MAX   309
 
#define LEXBOR_DECIMAL_POWER_MIN   (-324)
 
#define LEXBOR_UINT64_MAX   lexbor_uint64_hl(0xFFFFFFFF, 0xFFFFFFFF)
 
#define LEXBOR_UINT64_DECIMAL_DIGITS_MAX   19
 
#define LEXBOR_DENOM_LOG   3
 
#define LEXBOR_DENOM   (1 << LEXBOR_DENOM_LOG)
 

Functions

lxb_inline uint64_t lexbor_strtod_read_uint64 (const lxb_char_t *start, size_t length, size_t *ndigits)
 
lxb_inline lexbor_diyfp_t lexbor_strtod_adjust_pow10 (int exp)
 
lxb_inline int lexbor_strtod_diyfp_sgnd_size (int order)
 
double lexbor_strtod_internal (const lxb_char_t *start, size_t length, int exp)
 

Macro Definition Documentation

◆ LEXBOR_DECIMAL_POWER_MAX

#define LEXBOR_DECIMAL_POWER_MAX   309

Definition at line 30 of file strtod.c.

◆ LEXBOR_DECIMAL_POWER_MIN

#define LEXBOR_DECIMAL_POWER_MIN   (-324)

Definition at line 31 of file strtod.c.

◆ LEXBOR_DENOM

#define LEXBOR_DENOM   (1 << LEXBOR_DENOM_LOG)

Definition at line 37 of file strtod.c.

◆ LEXBOR_DENOM_LOG

#define LEXBOR_DENOM_LOG   3

Definition at line 36 of file strtod.c.

◆ LEXBOR_UINT64_DECIMAL_DIGITS_MAX

#define LEXBOR_UINT64_DECIMAL_DIGITS_MAX   19

Definition at line 34 of file strtod.c.

◆ LEXBOR_UINT64_MAX

#define LEXBOR_UINT64_MAX   lexbor_uint64_hl(0xFFFFFFFF, 0xFFFFFFFF)

Definition at line 33 of file strtod.c.

Function Documentation

◆ lexbor_strtod_adjust_pow10()

lxb_inline lexbor_diyfp_t lexbor_strtod_adjust_pow10 ( int exp)

Definition at line 110 of file strtod.c.

◆ lexbor_strtod_diyfp_sgnd_size()

lxb_inline int lexbor_strtod_diyfp_sgnd_size ( int order)

Definition at line 141 of file strtod.c.

◆ lexbor_strtod_internal()

double lexbor_strtod_internal ( const lxb_char_t * start,
size_t length,
int exp )

Definition at line 264 of file strtod.c.

◆ lexbor_strtod_read_uint64()

lxb_inline uint64_t lexbor_strtod_read_uint64 ( const lxb_char_t * start,
size_t length,
size_t * ndigits )

Definition at line 56 of file strtod.c.