Permalink
Browse files

recur_func prototype

  • Loading branch information...
1 parent 217989d commit 312798bd7c7db5b86d5c0a74bd29cd8d4d5a38a9 @dinesh9920 dinesh9920 committed Aug 21, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 matrix/oblivious.cpp
View
@@ -9,14 +9,16 @@ extern int matrix_n, matrix_m, matrix_p;
extern int A(int, int);
extern int B(int, int);
+void recur_func(int, int, int, int, int, int, int);
+
void cache_oblivious(void) {
int i, j, k;
recur_func(matrix_n, matrix_m, matrix_p, 0, 0, 0, 0);
}
void recur_func(int n, int m, int p, int a1, int a2, int b1, int b2){
if((n==1) && (m==1) && (p==1)){
- cout << A(a1, a2)*B(b1, b2) << endl;
+ A(a1, a2)*B(b1, b2);
return;
}

0 comments on commit 312798b

Please sign in to comment.