
Go to the source code of this file.
Defines | |
| #define | TO_INTX(RET_TYPE, UP_RET_TYPE) |
| #define | TO_INTX(RET_TYPE, UP_RET_TYPE) |
| #define TO_INTX | ( | RET_TYPE, | |||
| UP_RET_TYPE | ) |
Value:
\ if (sgn == SC_ZERO) \ return 0; \ \ int vnd = sc_min((int)DIGITS_PER_ ## UP_RET_TYPE, ndigits); \ \ RET_TYPE v = 0; \ while (--vnd >= 0) \ v = (v << BITS_PER_DIGIT) + digit[vnd]; \ \ if (sgn == SC_NEG) \ return -v; \ else \ return v;
Definition at line 5072 of file sc_unsigned.cpp.
| #define TO_INTX | ( | RET_TYPE, | |||
| UP_RET_TYPE | ) |
Value:
\ if (sgn == SC_ZERO) \ return 0; \ \ int vnd = sc_min((int)DIGITS_PER_ ## UP_RET_TYPE, ndigits); \ \ RET_TYPE v = 0; \ while (--vnd >= 0) \ v = (v << BITS_PER_DIGIT) + digit[vnd]; \ \ if (sgn == SC_NEG) \ return -v; \ else \ return v;
Definition at line 7027 of file sc_signed.cpp.
1.5.5