| 563 | }; |
| 564 | |
| 565 | word Portable::Add(word *C, const word *A, const word *B, unsigned int N) |
| 566 | { |
| 567 | DWord u(0, 0); |
| 568 | for (unsigned int i = 0; i < N; i+=2) |
| 569 | { |
| 570 | u = DWord(A[i]) + B[i] + u.GetHighHalf(); |
| 571 | C[i] = u.GetLowHalf(); |
| 572 | u = DWord(A[i+1]) + B[i+1] + u.GetHighHalf(); |
| 573 | C[i+1] = u.GetLowHalf(); |
| 574 | } |
| 575 | return u.GetHighHalf(); |
| 576 | } |
| 577 | |
| 578 | word Portable::Subtract(word *C, const word *A, const word *B, unsigned int N) |
| 579 | { |
nothing calls this directly
no test coverage detected