--- jsr166/src/test/loops/FJPhaserJacobi.java 2009/10/29 23:16:47 1.3 +++ jsr166/src/test/loops/FJPhaserJacobi.java 2009/11/02 23:55:36 1.5 @@ -1,3 +1,9 @@ +/* + * Written by Doug Lea with assistance from members of JCP JSR-166 + * Expert Group and released to the public domain, as explained at + * http://creativecommons.org/licenses/publicdomain + */ + // Barrier version of Jacobi iteration import java.util.concurrent.*; @@ -137,8 +143,8 @@ public class FJPhaserJacobi { public void compute() { int rows = hiRow - loRow + 1; int cols = hiCol - loCol + 1; - int rblocks = (int)(Math.round((float)rows / dimGran)); - int cblocks = (int)(Math.round((float)cols / dimGran)); + int rblocks = Math.round((float)rows / dimGran); + int cblocks = Math.round((float)cols / dimGran); int n = rblocks * cblocks;