This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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 ;))
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |