Open MPI logo

Hardware Locality Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Hardware Locality Development mailing list

Subject: Re: [hwloc-devel] What does this C99 notation mean?
From: Samuel Thibault (samuel.thibault_at_[hidden])
Date: 2011-02-14 08:29:32


Jeff Squyres, le Mon 14 Feb 2011 14:21:16 +0100, a écrit :
> Let me re-phrase that, because the way I phrased it, I could guess that that detail might be implementation-dependent.
>
> What I meant was: _distances is clearly a 1D array. Does the above C99 notation say "treat this 1D array like a 2D array of size [x][y]"? And then how it actually happens underneath is implementation dependent (e.g., whether it makes a silent/temporary array or pointers, or converts indexing)?

I don't think it can even be implementation dependent: here we just
define a pointer, and assign to it a casted value.

Samuel