From: adash Date: Wed, 5 Nov 2008 02:21:20 +0000 (+0000) Subject: improved version for better scaling results X-Git-Tag: buildscript^7~58 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=cdd98e6a5cd5693b13e7fd779e7439518dbf45c8;p=IRC.git improved version for better scaling results --- diff --git a/Robust/src/Benchmarks/Prefetch/2DFFT/dsm/fft2d.java b/Robust/src/Benchmarks/Prefetch/2DFFT/dsm/fft2d.java index f852311a..fda6b421 100644 --- a/Robust/src/Benchmarks/Prefetch/2DFFT/dsm/fft2d.java +++ b/Robust/src/Benchmarks/Prefetch/2DFFT/dsm/fft2d.java @@ -10,16 +10,14 @@ public class fft2d extends Thread { // Code borrowed from :Java Digital Signal Processing book by Lyon and Rao public Matrix data1, data2; - public int x0, x1, y0, y1; + public int x0, x1; // Constructor: 2-d FFT of Complex data. - public fft2d(Matrix data1, Matrix data2, int x0, int x1, int y0, int y1) { + public fft2d(Matrix data1, Matrix data2, int x0, int x1) { this.data1 = data1; this.data2 = data2; this.x0 = x0; this.x1 = x1; - this.y0 = y0; - this.y1 = y1; } public void run() { @@ -78,7 +76,7 @@ public class fft2d extends Thread { atomic { transtempRe = data2.dataRe; transtempIm = data2.dataIm; - for (int j = y0; j < y1; j++) { + for (int j = x0; j < x1; j++) { //input of FFT double inputRe[] = transtempRe[j]; //local array double inputIm[] = transtempIm[j]; @@ -132,9 +130,9 @@ public class fft2d extends Thread { int base = 0; for(int i =0 ; i