Home
last modified time | relevance | path

Searched refs:radix_position (Results 1 – 3 of 3) sorted by relevance

/dports/databases/p5-BSON-XS/BSON-XS-v0.8.4/bson/
H A Dbson-decimal128.c278 int32_t radix_position = significand_digits + exponent; in bson_decimal128_to_string() local
280 if (radix_position > 0) { /* non-zero digits before radix */ in bson_decimal128_to_string()
281 for (i = 0; i < radix_position; i++) { in bson_decimal128_to_string()
289 while (radix_position++ < 0) { /* add leading zeros after radix */ in bson_decimal128_to_string()
293 for (i = 0; i < significand_digits - BSON_MAX (radix_position - 1, 0); in bson_decimal128_to_string()
456 size_t radix_position = 0; /* The number of the digits after radix */ in bson_decimal128_from_string() local
525 radix_position++; in bson_decimal128_from_string()
588 if (exponent <= radix_position && radix_position - exponent > (1 << 14)) { in bson_decimal128_from_string()
591 exponent -= radix_position; in bson_decimal128_from_string()
/dports/devel/libbson/libbson-1.8.1/src/bson/
H A Dbson-decimal128.c281 int32_t radix_position = significand_digits + exponent; in bson_decimal128_to_string() local
283 if (radix_position > 0) { /* non-zero digits before radix */ in bson_decimal128_to_string()
284 for (i = 0; i < radix_position; i++) { in bson_decimal128_to_string()
292 while (radix_position++ < 0) { /* add leading zeros after radix */ in bson_decimal128_to_string()
296 for (i = 0; i < significand_digits - BSON_MAX (radix_position - 1, 0); in bson_decimal128_to_string()
455 size_t radix_position = 0; /* The number of the digits after radix */ in bson_decimal128_from_string() local
523 radix_position++; in bson_decimal128_from_string()
587 if (exponent <= radix_position && radix_position - exponent > (1 << 14)) { in bson_decimal128_from_string()
590 exponent -= radix_position; in bson_decimal128_from_string()
/dports/databases/pecl-mongodb/mongodb-1.9.1/src/libmongoc/src/libbson/src/bson/
H A Dbson-decimal128.c281 int32_t radix_position = significand_digits + exponent; in bson_decimal128_to_string() local
283 if (radix_position > 0) { /* non-zero digits before radix */ in bson_decimal128_to_string()
285 i < radix_position && (str_out - str) < BSON_DECIMAL128_STRING; in bson_decimal128_to_string()
294 while (radix_position++ < 0) { /* add leading zeros after radix */ in bson_decimal128_to_string()
299 (i < significand_digits - BSON_MAX (radix_position - 1, 0)) && in bson_decimal128_to_string()
493 size_t radix_position = 0; /* The number of the digits after radix */ in bson_decimal128_from_string_w_len() local
562 radix_position++; in bson_decimal128_from_string_w_len()
626 if (exponent <= radix_position && radix_position - exponent > (1 << 14)) { in bson_decimal128_from_string_w_len()
629 exponent -= radix_position; in bson_decimal128_from_string_w_len()