| 1220 | } |
| 1221 | |
| 1222 | bool Integer::GetBit(unsigned int n) const |
| 1223 | { |
| 1224 | if (n/WORD_BITS >= reg.size) |
| 1225 | return 0; |
| 1226 | else |
| 1227 | return bool((reg[n/WORD_BITS] >> (n % WORD_BITS)) & 1); |
| 1228 | } |
| 1229 | |
| 1230 | void Integer::SetBit(unsigned int n, bool value) |
| 1231 | { |
no outgoing calls
no test coverage detected