Definition at line 2501 of file lwgeom.c.
2506 int digits_left_of_decimal = (int) (1 + log10(fabs(d)));
2508 uint64_t mask = 0xffffffffffffffffULL << (52 - bits_needed);
2510 size_t dsz =
sizeof(d) <
sizeof(dint) ?
sizeof(d) :
sizeof(dint);
2512 memcpy(&dint, &d, dsz);
2514 memcpy(&d, &dint, dsz);
static uint8_t bits_for_precision(int32_t significant_digits)
References bits_for_precision().
Referenced by lwgeom_trim_bits_in_place().