daily pastebin goal
32%
SHARE
TWEET

Untitled

a guest Apr 16th, 2018 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.   }
RAW Paste Data
Top