|
79 | 79 | * ## Functions Requiring Normalized Input |
80 | 80 | * |
81 | 81 | * The following functions MUST receive normalized input for correct operation: |
82 | | - * - \c intn_to_string() - for correct output |
83 | | - * - \c intn_to_double() - for correct conversion |
84 | 82 | * - \c intn_to_int64() - for correct conversion |
85 | 83 | * - \c intn_fits_int64() - for accurate check |
86 | | - * - \c intn_to_integer_bytes() - for correct size calculation |
87 | | - * - \c intn_required_unsigned_integer_bytes() - for accurate size |
88 | 84 | * |
89 | 85 | * All other functions accept both normalized and non-normalized inputs. |
90 | 86 | * |
@@ -719,9 +715,9 @@ size_t intn_count_digits(const intn_digit_t *num, size_t num_len); |
719 | 715 | * @return Newly allocated null-terminated string (caller must free) |
720 | 716 | * |
721 | 717 | * @pre base >= 2 && base <= 36 |
722 | | - * @pre Input must be normalized for correct output |
723 | 718 | * @post Returned string must be freed by caller |
724 | 719 | * @note Output format: uppercase letters, no base prefix |
| 720 | + * @note Accepts both normalized and non-normalized inputs |
725 | 721 | */ |
726 | 722 | char *intn_to_string(const intn_digit_t *num, size_t len, intn_integer_sign_t num_sign, int base, |
727 | 723 | size_t *string_len); |
@@ -763,9 +759,9 @@ int intn_parse( |
763 | 759 | * @param sign Sign of integer |
764 | 760 | * @return Double representation |
765 | 761 | * |
766 | | - * @pre Input must be normalized |
767 | 762 | * @note Precision loss expected for integers > 53 bits |
768 | 763 | * @note With current 256-bit limit, result always fits in double range |
| 764 | + * @note Accepts both normalized and non-normalized inputs |
769 | 765 | */ |
770 | 766 | double intn_to_double(const intn_digit_t *num, size_t len, intn_integer_sign_t sign); |
771 | 767 |
|
|
0 commit comments