HelenOS sources
bigint 51 uspace/app/sbi/src/bigint.c static void bigint_alloc(bigint_t *bigint, size_t length);
bigint 52 uspace/app/sbi/src/bigint.c static void bigint_refine_len(bigint_t *bigint);
bigint 60 uspace/app/sbi/src/bigint.c void bigint_init(bigint_t *bigint, int value)
bigint 71 uspace/app/sbi/src/bigint.c bigint->negative = b_true;
bigint 74 uspace/app/sbi/src/bigint.c bigint->negative = b_false;
bigint 86 uspace/app/sbi/src/bigint.c bigint_alloc(bigint, length);
bigint 91 uspace/app/sbi/src/bigint.c bigint->digit[idx] = t % BIGINT_BASE;
bigint 165 uspace/app/sbi/src/bigint.c void bigint_destroy(bigint_t *bigint)
bigint 170 uspace/app/sbi/src/bigint.c bigint->negative = b_false;
bigint 172 uspace/app/sbi/src/bigint.c bigint->length = 0;
bigint 174 uspace/app/sbi/src/bigint.c free(bigint->digit);
bigint 175 uspace/app/sbi/src/bigint.c bigint->digit = NULL;
bigint 188 uspace/app/sbi/src/bigint.c errno_t bigint_get_value_int(bigint_t *bigint, int *dval)
bigint 199 uspace/app/sbi/src/bigint.c for (idx = 0; idx < bigint->length; ++idx) {
bigint 200 uspace/app/sbi/src/bigint.c val = val * BIGINT_BASE + bigint->digit[idx];
bigint 203 uspace/app/sbi/src/bigint.c if (bigint->negative)
bigint 209 uspace/app/sbi/src/bigint.c bigint_sub(bigint, &vval, &diff);
bigint 228 uspace/app/sbi/src/bigint.c bool_t bigint_is_zero(bigint_t *bigint)
bigint 233 uspace/app/sbi/src/bigint.c return (bigint->length == 0);
bigint 241 uspace/app/sbi/src/bigint.c bool_t bigint_is_negative(bigint_t *bigint)
bigint 247 uspace/app/sbi/src/bigint.c assert(bigint->negative == b_false || bigint->length > 0);
bigint 249 uspace/app/sbi/src/bigint.c return bigint->negative;
bigint 367 uspace/app/sbi/src/bigint.c void bigint_get_as_string(bigint_t *bigint, char **dptr)
bigint 386 uspace/app/sbi/src/bigint.c if (bigint_is_zero(bigint) || bigint->negative)
bigint 389 uspace/app/sbi/src/bigint.c bigint_clone(bigint, &val);
bigint 407 uspace/app/sbi/src/bigint.c if (bigint_is_zero(bigint)) {
bigint 409 uspace/app/sbi/src/bigint.c } else if (bigint->negative) {
bigint 414 uspace/app/sbi/src/bigint.c bigint_clone(bigint, &val);
bigint 433 uspace/app/sbi/src/bigint.c void bigint_print(bigint_t *bigint)
bigint 440 uspace/app/sbi/src/bigint.c bigint_get_as_string(bigint, &str);
bigint 653 uspace/app/sbi/src/bigint.c static void bigint_alloc(bigint_t *bigint, size_t length)
bigint 666 uspace/app/sbi/src/bigint.c bigint->digit = malloc(a_length * sizeof(bigint_word_t));
bigint 667 uspace/app/sbi/src/bigint.c if (bigint->digit == NULL) {
bigint 672 uspace/app/sbi/src/bigint.c bigint->length = length;
bigint 681 uspace/app/sbi/src/bigint.c static void bigint_refine_len(bigint_t *bigint)
bigint 686 uspace/app/sbi/src/bigint.c while (bigint->length > 0 && bigint->digit[bigint->length - 1] == 0)
bigint 687 uspace/app/sbi/src/bigint.c bigint->length -= 1;
bigint 689 uspace/app/sbi/src/bigint.c if (bigint->length == 0)
bigint 690 uspace/app/sbi/src/bigint.c bigint->negative = b_false;
bigint 34 uspace/app/sbi/src/bigint.h void bigint_init(bigint_t *bigint, int value);
bigint 38 uspace/app/sbi/src/bigint.h void bigint_destroy(bigint_t *bigint);
bigint 40 uspace/app/sbi/src/bigint.h errno_t bigint_get_value_int(bigint_t *bigint, int *dval);
bigint 41 uspace/app/sbi/src/bigint.h bool_t bigint_is_zero(bigint_t *bigint);
bigint 42 uspace/app/sbi/src/bigint.h bool_t bigint_is_negative(bigint_t *bigint);
bigint 51 uspace/app/sbi/src/bigint.h void bigint_get_as_string(bigint_t *bigint, char **dptr);
bigint 52 uspace/app/sbi/src/bigint.h void bigint_print(bigint_t *bigint);
HelenOS homepage, sources at GitHub