This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] Matrix Flattening and Transposing optimizations
On 3/27/07, Richard Henderson <email@example.com> wrote:
On Sun, Mar 25, 2007 at 01:21:32PM +0200, Razya Ladelsky wrote:
> a = (int **) malloc(dim1 * sizeof(int *));
> for (i=0; i<dim1; i++)
> a[i] = (int *) malloc (dim2 * sizeof(int));
Do people really do this...
> a = (int *) malloc (dim1 * dim2 *sizeof(int));
... as opposed to this?
Of course they do. Like for 456.hmmer or a CFD code I know of, even
for three dimensions(!) (no, not tramp3d ;))