|
polylib 7.01
|
Go to the source code of this file.
Macros | |
| #define | __LONG_LONG_MAX__ 9223372036854775807LL |
| package arithmetique More... | |
| #define | LONG_LONG_MAX __LONG_LONG_MAX__ |
| #define | LONG_LONG_MIN (-LONG_LONG_MAX - 1) |
| #define | ULONG_LONG_MAX (LONG_LONG_MAX * 2ULL + 1) |
| #define | LINEAR_VALUE_STRING "int" |
| #define | VALUE_FMT "%d" |
| #define | VALUE_CONST(val) (val) |
| #define | VALUE_NAN INT_MIN |
| #define | VALUE_MIN (INT_MIN + 1) |
| #define | VALUE_MAX INT_MAX |
| #define | VALUE_ZERO 0 |
| #define | VALUE_ONE 1 |
| #define | VALUE_MONE -1 |
| #define | VALUE_TO_LONG(val) ((long)(val)) |
| #define | VALUE_TO_INT(val) ((int)(val)) |
| #define | VALUE_TO_FLOAT(val) ((float)(val)) |
| #define | VALUE_TO_DOUBLE(val) ((double)(val)) |
| #define | value_init(val) ((val) = 0) |
| #define | value_assign(v1, v2) ((v1) = (v2)) |
| #define | value_set_si(val, i) ((val) = (Value)(i)) |
| #define | value_set_double(val, d) ((val) = (Value)(d)) |
| #define | value_clear(val) ((val) = 0) |
| #define | value_read(val, str) (sscanf((str), VALUE_FMT, &(val))) |
| #define | value_print(Dst, fmt, val) (fprintf((Dst), (fmt), (val))) |
| #define | value_swap(v1, v2) |
| #define | int_to_value(i) ((Value)(i)) |
| #define | long_to_value(l) ((Value)(l)) |
| #define | float_to_value(f) ((Value)(f)) |
| #define | double_to_value(d) ((Value)(d)) |
| #define | value_eq(v1, v2) ((v1) == (v2)) |
| #define | value_ne(v1, v2) ((v1) != (v2)) |
| #define | value_gt(v1, v2) ((v1) > (v2)) |
| #define | value_ge(v1, v2) ((v1) >= (v2)) |
| #define | value_lt(v1, v2) ((v1) < (v2)) |
| #define | value_le(v1, v2) ((v1) <= (v2)) |
| #define | value_abs_eq(v1, v2) (value_abs(v1) == value_abs(v2)) |
| #define | value_abs_ne(v1, v2) (value_abs(v1) != value_abs(v2)) |
| #define | value_abs_gt(v1, v2) (value_abs(v1) > value_abs(v2)) |
| #define | value_abs_ge(v1, v2) (value_abs(v1) >= value_abs(v2)) |
| #define | value_abs_lt(v1, v2) (value_abs(v1) < value_abs(v2)) |
| #define | value_abs_le(v1, v2) (value_abs(v1) <= value_abs(v2)) |
| #define | value_sign(v) (value_eq(v, VALUE_ZERO) ? 0 : value_lt(v, VALUE_ZERO) ? -1 : 1) |
| #define | value_cmp(v1, v2) (value_eq(v1, v2) ? 0 : value_lt(v1, v2) ? -1 : 1) |
| #define | value_plus(v1, v2) ((v1) + (v2)) |
| #define | value_div(v1, v2) ((v1) / (v2)) |
| #define | value_mod(v1, v2) ((v1) % (v2)) |
| #define | value_direct_multiply(v1, v2) ((v1) * (v2)) /* direct! */ |
| #define | value_minus(v1, v2) ((v1) - (v2)) |
| #define | value_pdiv(v1, v2) (DIVIDE((v1), (v2))) |
| #define | value_pmod(v1, v2) (MODULO((v1), (v2))) |
| #define | value_min(v1, v2) (value_le((v1), (v2)) ? (v1) : (v2)) |
| #define | value_max(v1, v2) (value_ge((v1), (v2)) ? (v1) : (v2)) |
| #define | value_or(v1, v2) ((v1) | (v2)) |
| #define | value_and(v1, v2) ((v1) & (v2)) |
| #define | value_lshift(v1, v2) ((v1) << (v2)) |
| #define | value_rshift(v1, v2) ((v1) >> (v2)) |
| #define | value_addto(ref, val1, val2) ((ref) = (val1) + (val2)) |
| #define | value_add_int(ref, val, vint) ((ref) = (val) + (Value)(vint)) |
| #define | value_addmul(ref, val1, val2) ((ref) += (val1) * (val2)) |
| #define | value_increment(ref, val) ((ref) = (val) + VALUE_ONE) |
| #define | value_direct_product(ref, val1, val2) ((ref) = (val1) * (val2)) /* direct! */ |
| #define | value_multiply(ref, val1, val2) ((ref) = value_mult((val1), (val2))) |
| #define | value_subtract(ref, val1, val2) ((ref) = (val1) - (val2)) |
| #define | value_sub_int(ref, val, vint) ((ref) = (val) - (Value)(vint)) |
| #define | value_decrement(ref, val) ((ref) = (val) - VALUE_ONE) |
| #define | value_division(ref, val1, val2) ((ref) = (val1) / (val2)) |
| #define | value_divexact(ref, val1, val2) ((ref) = (val1) / (val2)) |
| #define | value_modulus(ref, val1, val2) ((ref) = (val1) % (val2)) |
| #define | value_pdivision(ref, val1, val2) ((ref) = value_pdiv((val1), (val2))) |
| #define | value_pmodulus(ref, val1, val2) ((ref) = value_pmod((val1), (val2))) |
| #define | value_oppose(ref, val) ((ref) = value_uminus((val))) |
| #define | value_absolute(ref, val) ((ref) = value_abs((val))) |
| #define | value_minimum(ref, val1, val2) ((ref) = value_min((val1), (val2))) |
| #define | value_maximum(ref, val1, val2) ((ref) = value_max((val1), (val2))) |
| #define | value_gcd(ref, val1, val2) Gcd((val1), (val2), &(ref)) |
| #define | value_lcm(ref, val1, val2) Lcm3((val1), (val2), &(ref)) |
| #define | value_orto(ref, val1, val2) ((ref) = (val1) | (val2)) |
| #define | value_andto(ref, val1, val2) ((ref) = (val1) & (val2)) |
| #define | value_uminus(val) (-(val)) |
| #define | value_not(val) (~(val)) |
| #define | value_abs(val) |
| #define | value_pos_p(val) value_gt(val, VALUE_ZERO) |
| #define | value_neg_p(val) value_lt(val, VALUE_ZERO) |
| #define | value_posz_p(val) value_ge(val, VALUE_ZERO) |
| #define | value_negz_p(val) value_le(val, VALUE_ZERO) |
| #define | value_zero_p(val) value_eq(val, VALUE_ZERO) |
| #define | value_notzero_p(val) value_ne(val, VALUE_ZERO) |
| #define | value_one_p(val) value_eq(val, VALUE_ONE) |
| #define | value_notone_p(val) value_ne(val, VALUE_ONE) |
| #define | value_mone_p(val) value_eq(val, VALUE_MONE) |
| #define | value_notmone_p(val) value_ne(val, VALUE_MONE) |
| #define | value_cmp_si(val, n) (val - (n)) |
| #define | value_min_p(val) value_eq(val, VALUE_MIN) |
| #define | value_max_p(val) value_eq(val, VALUE_MAX) |
| #define | value_notmin_p(val) value_ne(val, VALUE_MIN) |
| #define | value_notmax_p(val) value_ne(val, VALUE_MAX) |
| #define | value_protected_hard_idiv_multiply(v, w, throw) |
| #define | value_protected_multiply(v, w, throw) value_protected_hard_idiv_multiply(v, w, throw) |
| #define | value_protected_mult(v, w) value_protected_multiply(v, w, THROW(overflow_error)) |
| #define | value_protected_product(v, w) v = value_protected_mult(v, w) |
| #define | value_mult(v, w) |
| #define | value_product(v, w) v = value_mult(v, w) |
| #define | value_substract(ref, val1, val2) (value_subtract((ref), (val1), (val2))) |
| #define | ABS(x) (((x) >= 0) ? (x) : -(x)) |
| #define | MIN(x, y) (((x) >= (y)) ? (y) : (x)) |
| #define | MAX(x, y) (((x) >= (y)) ? (x) : (y)) |
| #define | SIGN(x) (((x) > 0) ? 1 : ((x) == 0 ? 0 : -1)) |
| #define | DIVIDE(x, y) ((y) > 0 ? POSITIVE_DIVIDE(x, y) : -POSITIVE_DIVIDE((x), (-(y)))) |
| #define | POSITIVE_DIVIDE(x, y) ((x) > 0 ? (x) / (y) : -(-(x) + (y) - 1) / (y)) |
| #define | MODULO(x, y) ((y) > 0 ? POSITIVE_MODULO(x, y) : POSITIVE_MODULO(-x, -y)) |
| #define | POSITIVE_MODULO(x, y) ((x) > 0 ? (x) % (y) : ((x) % (y) == 0 ? 0 : ((y) - (-(x)) % (y)))) |
Typedefs | |
| typedef int | Value |
Functions | |
| void | dump_exception_stack_to_file (FILE *) |
| void | dump_exception_stack (void) |
| jmp_buf * | push_exception_on_stack (int, const char *, const char *, int) |
| void | pop_exception_from_stack (int, const char *, const char *, int) |
| void | throw_exception (int, const char *, const char *, int) |
| void | free_exception_stack (void) |
Variables | |
| unsigned int | overflow_error |
| unsigned int | simplex_arithmetic_error |
| unsigned int | user_exception_error |
| unsigned int | parser_exception_error |
| unsigned int | any_exception_error |
| unsigned int | the_last_just_thrown_exception |
| #define __LONG_LONG_MAX__ 9223372036854775807LL |
package arithmetique
Francois Irigoin, mai 1989
Modifications
Definition at line 70 of file arithmetique.h.
| #define ABS | ( | x | ) | (((x) >= 0) ? (x) : -(x)) |
Definition at line 730 of file arithmetique.h.
| #define DIVIDE | ( | x, | |
| y | |||
| ) | ((y) > 0 ? POSITIVE_DIVIDE(x, y) : -POSITIVE_DIVIDE((x), (-(y)))) |
Definition at line 753 of file arithmetique.h.
| #define double_to_value | ( | d | ) | ((Value)(d)) |
Definition at line 502 of file arithmetique.h.
| #define float_to_value | ( | f | ) | ((Value)(f)) |
Definition at line 501 of file arithmetique.h.
| #define int_to_value | ( | i | ) | ((Value)(i)) |
Definition at line 499 of file arithmetique.h.
| #define LINEAR_VALUE_STRING "int" |
Definition at line 293 of file arithmetique.h.
| #define LONG_LONG_MAX __LONG_LONG_MAX__ |
Definition at line 73 of file arithmetique.h.
| #define LONG_LONG_MIN (-LONG_LONG_MAX - 1) |
Definition at line 75 of file arithmetique.h.
| #define long_to_value | ( | l | ) | ((Value)(l)) |
Definition at line 500 of file arithmetique.h.
| #define MAX | ( | x, | |
| y | |||
| ) | (((x) >= (y)) ? (x) : (y)) |
Definition at line 741 of file arithmetique.h.
| #define MIN | ( | x, | |
| y | |||
| ) | (((x) >= (y)) ? (y) : (x)) |
Definition at line 738 of file arithmetique.h.
| #define MODULO | ( | x, | |
| y | |||
| ) | ((y) > 0 ? POSITIVE_MODULO(x, y) : POSITIVE_MODULO(-x, -y)) |
Definition at line 760 of file arithmetique.h.
| #define POSITIVE_DIVIDE | ( | x, | |
| y | |||
| ) | ((x) > 0 ? (x) / (y) : -(-(x) + (y) - 1) / (y)) |
Definition at line 757 of file arithmetique.h.
| #define POSITIVE_MODULO | ( | x, | |
| y | |||
| ) | ((x) > 0 ? (x) % (y) : ((x) % (y) == 0 ? 0 : ((y) - (-(x)) % (y)))) |
Definition at line 768 of file arithmetique.h.
| #define SIGN | ( | x | ) | (((x) > 0) ? 1 : ((x) == 0 ? 0 : -1)) |
Definition at line 745 of file arithmetique.h.
| #define ULONG_LONG_MAX (LONG_LONG_MAX * 2ULL + 1) |
Definition at line 77 of file arithmetique.h.
| #define value_abs | ( | val | ) |
Definition at line 567 of file arithmetique.h.
Definition at line 512 of file arithmetique.h.
Definition at line 515 of file arithmetique.h.
Definition at line 514 of file arithmetique.h.
Definition at line 517 of file arithmetique.h.
Definition at line 516 of file arithmetique.h.
Definition at line 513 of file arithmetique.h.
| #define value_absolute | ( | ref, | |
| val | |||
| ) | ((ref) = value_abs((val))) |
Definition at line 556 of file arithmetique.h.
| #define value_add_int | ( | ref, | |
| val, | |||
| vint | |||
| ) | ((ref) = (val) + (Value)(vint)) |
Definition at line 541 of file arithmetique.h.
| #define value_addmul | ( | ref, | |
| val1, | |||
| val2 | |||
| ) | ((ref) += (val1) * (val2)) |
Definition at line 542 of file arithmetique.h.
| #define value_addto | ( | ref, | |
| val1, | |||
| val2 | |||
| ) | ((ref) = (val1) + (val2)) |
Definition at line 540 of file arithmetique.h.
| #define value_and | ( | v1, | |
| v2 | |||
| ) | ((v1) & (v2)) |
Definition at line 535 of file arithmetique.h.
| #define value_andto | ( | ref, | |
| val1, | |||
| val2 | |||
| ) | ((ref) = (val1) & (val2)) |
Definition at line 562 of file arithmetique.h.
| #define value_assign | ( | v1, | |
| v2 | |||
| ) | ((v1) = (v2)) |
Definition at line 485 of file arithmetique.h.
| #define value_clear | ( | val | ) | ((val) = 0) |
Definition at line 488 of file arithmetique.h.
Definition at line 522 of file arithmetique.h.
Definition at line 584 of file arithmetique.h.
| #define VALUE_CONST | ( | val | ) | (val) |
Definition at line 296 of file arithmetique.h.
| #define value_decrement | ( | ref, | |
| val | |||
| ) | ((ref) = (val) - VALUE_ONE) |
Definition at line 549 of file arithmetique.h.
| #define value_direct_multiply | ( | v1, | |
| v2 | |||
| ) | ((v1) * (v2)) /* direct! */ |
Definition at line 528 of file arithmetique.h.
| #define value_direct_product | ( | ref, | |
| val1, | |||
| val2 | |||
| ) | ((ref) = (val1) * (val2)) /* direct! */ |
Definition at line 544 of file arithmetique.h.
| #define value_div | ( | v1, | |
| v2 | |||
| ) | ((v1) / (v2)) |
Definition at line 526 of file arithmetique.h.
| #define value_divexact | ( | ref, | |
| val1, | |||
| val2 | |||
| ) | ((ref) = (val1) / (val2)) |
Definition at line 551 of file arithmetique.h.
| #define value_division | ( | ref, | |
| val1, | |||
| val2 | |||
| ) | ((ref) = (val1) / (val2)) |
Definition at line 550 of file arithmetique.h.
| #define value_eq | ( | v1, | |
| v2 | |||
| ) | ((v1) == (v2)) |
Definition at line 505 of file arithmetique.h.
| #define VALUE_FMT "%d" |
Definition at line 295 of file arithmetique.h.
| #define value_gcd | ( | ref, | |
| val1, | |||
| val2 | |||
| ) | Gcd((val1), (val2), &(ref)) |
Definition at line 559 of file arithmetique.h.
| #define value_ge | ( | v1, | |
| v2 | |||
| ) | ((v1) >= (v2)) |
Definition at line 508 of file arithmetique.h.
| #define value_gt | ( | v1, | |
| v2 | |||
| ) | ((v1) > (v2)) |
Definition at line 507 of file arithmetique.h.
| #define value_increment | ( | ref, | |
| val | |||
| ) | ((ref) = (val) + VALUE_ONE) |
Definition at line 543 of file arithmetique.h.
| #define value_init | ( | val | ) | ((val) = 0) |
Definition at line 484 of file arithmetique.h.
| #define value_lcm | ( | ref, | |
| val1, | |||
| val2 | |||
| ) | Lcm3((val1), (val2), &(ref)) |
Definition at line 560 of file arithmetique.h.
| #define value_le | ( | v1, | |
| v2 | |||
| ) | ((v1) <= (v2)) |
Definition at line 510 of file arithmetique.h.
| #define value_lshift | ( | v1, | |
| v2 | |||
| ) | ((v1) << (v2)) |
Definition at line 536 of file arithmetique.h.
| #define value_lt | ( | v1, | |
| v2 | |||
| ) | ((v1) < (v2)) |
Definition at line 509 of file arithmetique.h.
| #define VALUE_MAX INT_MAX |
Definition at line 299 of file arithmetique.h.
| #define value_max | ( | v1, | |
| v2 | |||
| ) | (value_ge((v1), (v2)) ? (v1) : (v2)) |
Definition at line 533 of file arithmetique.h.
Definition at line 586 of file arithmetique.h.
| #define value_maximum | ( | ref, | |
| val1, | |||
| val2 | |||
| ) | ((ref) = value_max((val1), (val2))) |
Definition at line 558 of file arithmetique.h.
| #define VALUE_MIN (INT_MIN + 1) |
Definition at line 298 of file arithmetique.h.
| #define value_min | ( | v1, | |
| v2 | |||
| ) | (value_le((v1), (v2)) ? (v1) : (v2)) |
Definition at line 532 of file arithmetique.h.
Definition at line 585 of file arithmetique.h.
| #define value_minimum | ( | ref, | |
| val1, | |||
| val2 | |||
| ) | ((ref) = value_min((val1), (val2))) |
Definition at line 557 of file arithmetique.h.
| #define value_minus | ( | v1, | |
| v2 | |||
| ) | ((v1) - (v2)) |
Definition at line 529 of file arithmetique.h.
| #define value_mod | ( | v1, | |
| v2 | |||
| ) | ((v1) % (v2)) |
Definition at line 527 of file arithmetique.h.
| #define value_modulus | ( | ref, | |
| val1, | |||
| val2 | |||
| ) | ((ref) = (val1) % (val2)) |
Definition at line 552 of file arithmetique.h.
| #define VALUE_MONE -1 |
Definition at line 302 of file arithmetique.h.
| #define value_mone_p | ( | val | ) | value_eq(val, VALUE_MONE) |
Definition at line 582 of file arithmetique.h.
| #define value_mult | ( | v, | |
| w | |||
| ) |
Definition at line 635 of file arithmetique.h.
| #define value_multiply | ( | ref, | |
| val1, | |||
| val2 | |||
| ) | ((ref) = value_mult((val1), (val2))) |
Definition at line 546 of file arithmetique.h.
| #define VALUE_NAN INT_MIN |
Definition at line 297 of file arithmetique.h.
| #define value_ne | ( | v1, | |
| v2 | |||
| ) | ((v1) != (v2)) |
Definition at line 506 of file arithmetique.h.
| #define value_neg_p | ( | val | ) | value_lt(val, VALUE_ZERO) |
Definition at line 575 of file arithmetique.h.
| #define value_negz_p | ( | val | ) | value_le(val, VALUE_ZERO) |
Definition at line 577 of file arithmetique.h.
| #define value_not | ( | val | ) | (~(val)) |
Definition at line 566 of file arithmetique.h.
Definition at line 588 of file arithmetique.h.
Definition at line 587 of file arithmetique.h.
| #define value_notmone_p | ( | val | ) | value_ne(val, VALUE_MONE) |
Definition at line 583 of file arithmetique.h.
Definition at line 581 of file arithmetique.h.
| #define value_notzero_p | ( | val | ) | value_ne(val, VALUE_ZERO) |
Definition at line 579 of file arithmetique.h.
| #define VALUE_ONE 1 |
Definition at line 301 of file arithmetique.h.
Definition at line 580 of file arithmetique.h.
| #define value_oppose | ( | ref, | |
| val | |||
| ) | ((ref) = value_uminus((val))) |
Definition at line 555 of file arithmetique.h.
| #define value_or | ( | v1, | |
| v2 | |||
| ) | ((v1) | (v2)) |
Definition at line 534 of file arithmetique.h.
| #define value_orto | ( | ref, | |
| val1, | |||
| val2 | |||
| ) | ((ref) = (val1) | (val2)) |
Definition at line 561 of file arithmetique.h.
| #define value_pdiv | ( | v1, | |
| v2 | |||
| ) | (DIVIDE((v1), (v2))) |
Definition at line 530 of file arithmetique.h.
| #define value_pdivision | ( | ref, | |
| val1, | |||
| val2 | |||
| ) | ((ref) = value_pdiv((val1), (val2))) |
Definition at line 553 of file arithmetique.h.
| #define value_plus | ( | v1, | |
| v2 | |||
| ) | ((v1) + (v2)) |
Definition at line 525 of file arithmetique.h.
| #define value_pmod | ( | v1, | |
| v2 | |||
| ) | (MODULO((v1), (v2))) |
Definition at line 531 of file arithmetique.h.
| #define value_pmodulus | ( | ref, | |
| val1, | |||
| val2 | |||
| ) | ((ref) = value_pmod((val1), (val2))) |
Definition at line 554 of file arithmetique.h.
| #define value_pos_p | ( | val | ) | value_gt(val, VALUE_ZERO) |
Definition at line 574 of file arithmetique.h.
| #define value_posz_p | ( | val | ) | value_ge(val, VALUE_ZERO) |
Definition at line 576 of file arithmetique.h.
| #define value_print | ( | Dst, | |
| fmt, | |||
| val | |||
| ) | (fprintf((Dst), (fmt), (val))) |
Definition at line 490 of file arithmetique.h.
| #define value_product | ( | v, | |
| w | |||
| ) | v = value_mult(v, w) |
Definition at line 639 of file arithmetique.h.
| #define value_protected_hard_idiv_multiply | ( | v, | |
| w, | |||
| throw | |||
| ) |
Definition at line 598 of file arithmetique.h.
| #define value_protected_mult | ( | v, | |
| w | |||
| ) | value_protected_multiply(v, w, THROW(overflow_error)) |
Definition at line 619 of file arithmetique.h.
| #define value_protected_multiply | ( | v, | |
| w, | |||
| throw | |||
| ) | value_protected_hard_idiv_multiply(v, w, throw) |
Definition at line 613 of file arithmetique.h.
| #define value_protected_product | ( | v, | |
| w | |||
| ) | v = value_protected_mult(v, w) |
Definition at line 621 of file arithmetique.h.
| #define value_read | ( | val, | |
| str | |||
| ) | (sscanf((str), VALUE_FMT, &(val))) |
Definition at line 489 of file arithmetique.h.
| #define value_rshift | ( | v1, | |
| v2 | |||
| ) | ((v1) >> (v2)) |
Definition at line 537 of file arithmetique.h.
| #define value_set_double | ( | val, | |
| d | |||
| ) | ((val) = (Value)(d)) |
Definition at line 487 of file arithmetique.h.
| #define value_set_si | ( | val, | |
| i | |||
| ) | ((val) = (Value)(i)) |
Definition at line 486 of file arithmetique.h.
| #define value_sign | ( | v | ) | (value_eq(v, VALUE_ZERO) ? 0 : value_lt(v, VALUE_ZERO) ? -1 : 1) |
Definition at line 520 of file arithmetique.h.
| #define value_sub_int | ( | ref, | |
| val, | |||
| vint | |||
| ) | ((ref) = (val) - (Value)(vint)) |
Definition at line 548 of file arithmetique.h.
| #define value_substract | ( | ref, | |
| val1, | |||
| val2 | |||
| ) | (value_subtract((ref), (val1), (val2))) |
Definition at line 725 of file arithmetique.h.
| #define value_subtract | ( | ref, | |
| val1, | |||
| val2 | |||
| ) | ((ref) = (val1) - (val2)) |
Definition at line 547 of file arithmetique.h.
| #define value_swap | ( | v1, | |
| v2 | |||
| ) |
Definition at line 491 of file arithmetique.h.
| #define VALUE_TO_DOUBLE | ( | val | ) | ((double)(val)) |
Definition at line 306 of file arithmetique.h.
| #define VALUE_TO_FLOAT | ( | val | ) | ((float)(val)) |
Definition at line 305 of file arithmetique.h.
| #define VALUE_TO_INT | ( | val | ) | ((int)(val)) |
Definition at line 304 of file arithmetique.h.
| #define VALUE_TO_LONG | ( | val | ) | ((long)(val)) |
Definition at line 303 of file arithmetique.h.
| #define value_uminus | ( | val | ) | (-(val)) |
Definition at line 565 of file arithmetique.h.
| #define VALUE_ZERO 0 |
Definition at line 300 of file arithmetique.h.
| #define value_zero_p | ( | val | ) | value_eq(val, VALUE_ZERO) |
Definition at line 578 of file arithmetique.h.
| typedef int Value |
Definition at line 294 of file arithmetique.h.
| void dump_exception_stack | ( | void | ) |
Definition at line 257 of file errors.c.
References dump_exception_stack_to_file().
Referenced by pop_exception_from_stack(), push_exception_on_stack(), and throw_exception().
| void dump_exception_stack_to_file | ( | FILE * | f | ) |
Definition at line 240 of file errors.c.
References exception_index, and exception_stack.
Referenced by dump_exception_stack().
| void free_exception_stack | ( | void | ) |
Definition at line 207 of file errors.c.
References assert, and exception_stack.
Referenced by polylib_close().
| void pop_exception_from_stack | ( | int | what, |
| const char * | function, | ||
| const char * | file, | ||
| int | line | ||
| ) |
Definition at line 308 of file errors.c.
References assert, dump_exception_stack(), exception_debug_message, exception_debug_trace, exception_index, exception_stack, pop_callback, same_string_p, and the_last_just_thrown_exception.
| jmp_buf * push_exception_on_stack | ( | int | what, |
| const char * | function, | ||
| const char * | file, | ||
| int | line | ||
| ) |
Definition at line 270 of file errors.c.
References assert, dump_exception_stack(), exception_debug_message, exception_debug_trace, exception_index, exception_stack, linear_exception_holder::file, linear_exception_holder::function, linear_exception_holder::line, MAX_STACKED_CONTEXTS, push_callback, the_last_just_thrown_exception, linear_exception_holder::what, and linear_exception_holder::where.
| void throw_exception | ( | int | what, |
| const char * | function, | ||
| const char * | file, | ||
| int | line | ||
| ) |
Definition at line 352 of file errors.c.
References assert, dump_exception_stack(), exception_debug_message, exception_debug_trace, exception_index, exception_stack, linear_exception_debug_mode, linear_exception_verbose, linear_number_of_exception_thrown, pop_callback, and the_last_just_thrown_exception.
|
extern |
Definition at line 103 of file errors.c.
Referenced by AddConstraints(), AddRays(), align_context(), BuildSat(), Chernikova(), Constraints2Polyhedron(), DomainConvex(), DomainCost(), DomainImage(), DomainPreimage(), FindSimple(), Gauss4(), get_exception_name(), Polyhedron_Image(), Polyhedron_Preimage(), Rays2Polyhedron(), Rays_Mult(), Rays_Mult_Transpose(), Remove_Redundants(), SimplifyConstraints(), Stras_DomainSimplify(), and SubConstraint().
|
extern |
Definition at line 96 of file errors.c.
Referenced by Ehrhart_Quick_Apx_Full_Dim(), Enumerate_NoParameters(), get_exception_name(), and Polyhedron_Enumerate().
|
extern |
Definition at line 99 of file errors.c.
Referenced by get_exception_name().
|
extern |
Definition at line 97 of file errors.c.
Referenced by get_exception_name().
|
extern |
Definition at line 141 of file errors.c.
Referenced by pop_exception_from_stack(), push_exception_on_stack(), and throw_exception().
|
extern |
Definition at line 98 of file errors.c.
Referenced by get_exception_name().