Guest User

Untitled

a guest
Apr 16th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. void mul(const Mat256x256i8& a, const Mat256x256i8& b) {
  2. for(int i=0; i<256; i++) {
  3. for(int j=0; j<256; j++) {
  4. int tmp=0;
  5. for(int k=0; k<256; k++) {
  6. tmp+=int(a.d[i][k])*int(b.d[k][j]);
  7. }
  8. this->d[i][j]=((tmp&0xFF)+ ((tmp>>8)&0xFF))&0xFF;
  9. }
  10. }
  11. }
Add Comment
Please, Sign In to add comment