All pastes #204496 Raw Edit

Someone

public text v1 · immutable
#204496 ·published 2006-10-16 00:36 UTC
rendered paste body
        zeromemory();

        int row=0;
        int col=0;
        int i=0;
        int j=0;
        double tempSum=0;

        for(row=0; row<rows; row++){
                diskfileread(a, rows, row * rows, 0);
                for(col=0; col<rows; col++){
                        for(j=0; j<rows; j++){
                                diskfileread(b, 1, (j * rows) + col, rows + j);
                        }
                        tempSum=0;
                        for(i=0; i<rows; i++){
                                tempSum += mainmem[i] * mainmem[rows + i];
                        }
                        mainmem[(2 * rows) + (rows * row) + col] = tempSum;
                }
        }
        diskfilewrite(c, rows*rows, 0, 2*rows);