|
PostgreSQL Source Code git master
|
#include "postgres.h"#include "common/shortest_dec.h"#include "ryu_common.h"#include "digit_table.h"#include "d2s_full_table.h"#include "d2s_intrinsics.h"
Go to the source code of this file.
Data Structures | |
| struct | floating_decimal_64 |
Macros | |
| #define | DOUBLE_MANTISSA_BITS 52 |
| #define | DOUBLE_EXPONENT_BITS 11 |
| #define | DOUBLE_BIAS 1023 |
| #define | DOUBLE_POW5_INV_BITCOUNT 122 |
| #define | DOUBLE_POW5_BITCOUNT 121 |
Typedefs | |
| typedef struct floating_decimal_64 | floating_decimal_64 |
|
inlinestatic |
Definition at line 346 of file d2s.c.
References div10(), div100(), div5(), DOUBLE_BIAS, DOUBLE_MANTISSA_BITS, DOUBLE_POW5_BITCOUNT, DOUBLE_POW5_INV_BITCOUNT, DOUBLE_POW5_INV_SPLIT, DOUBLE_POW5_SPLIT, floating_decimal_64::exponent, fb(), fd(), i, j, log10Pow2(), log10Pow5(), mulShiftAll(), multipleOfPowerOf2(), multipleOfPowerOf5(), output, pow5bits(), and UINT64CONST.
Referenced by double_to_shortest_decimal_bufn().
|
inlinestatic |
Definition at line 962 of file d2s.c.
References DOUBLE_BIAS, DOUBLE_MANTISSA_BITS, floating_decimal_64::exponent, fb(), floating_decimal_64::mantissa, and UINT64CONST.
Referenced by double_to_shortest_decimal_bufn().
Definition at line 264 of file d2s.c.
References Assert.
Referenced by to_chars().
Definition at line 1070 of file d2s.c.
References DOUBLE_SHORTEST_DECIMAL_LEN, double_to_shortest_decimal_buf(), palloc(), and result.
Definition at line 1053 of file d2s.c.
References Assert, DOUBLE_SHORTEST_DECIMAL_LEN, double_to_shortest_decimal_bufn(), and result.
Referenced by double_to_shortest_decimal(), float8out_internal(), and outDouble().
Definition at line 1015 of file d2s.c.
References copy_special_str(), d2d(), d2d_small_int(), DOUBLE_EXPONENT_BITS, DOUBLE_MANTISSA_BITS, double_to_bits(), fb(), result, to_chars(), and UINT64CONST.
Referenced by double_to_shortest_decimal_buf().
|
inlinestatic |
Definition at line 220 of file d2s.c.
References fb(), j, shiftright128(), and umul128().
Referenced by d2d().
Definition at line 106 of file d2s.c.
References UINT64CONST, and value.
Referenced by d2d().
Definition at line 95 of file d2s.c.
References pow5Factor(), and value.
Referenced by d2d().
Definition at line 787 of file d2s.c.
References decimalLength(), DIGIT_TABLE, div10(), div1e8(), floating_decimal_64::exponent, fb(), i, floating_decimal_64::mantissa, memcpy(), output, result, sign, and to_chars_df().
Referenced by double_to_shortest_decimal_bufn().
|
inlinestatic |
Definition at line 631 of file d2s.c.
References Assert, DIGIT_TABLE, div1e8(), floating_decimal_64::exponent, fb(), i, floating_decimal_64::mantissa, memcpy(), output, and result.
Referenced by to_chars().