| 1105 | } |
| 1106 | |
| 1107 | txBigInt *fxBigInt_uand(txMachine* the, txBigInt *r, txBigInt *a, txBigInt *b) |
| 1108 | { |
| 1109 | int i; |
| 1110 | if (a->size > b->size) { |
| 1111 | txBigInt *t = b; |
| 1112 | b = a; |
| 1113 | a = t; |
| 1114 | } |
| 1115 | if (r == NULL) |
| 1116 | r = fxBigInt_alloc(the, a->size); |
| 1117 | else |
| 1118 | r->size = a->size; |
| 1119 | for (i = 0; i < a->size; i++) |
| 1120 | r->data[i] = a->data[i] & b->data[i]; |
| 1121 | return(r); |
| 1122 | } |
| 1123 | |
| 1124 | txBigInt *fxBigInt_or(txMachine* the, txBigInt *r, txBigInt *a, txBigInt *b) |
| 1125 | { |
no test coverage detected