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: Jeff Squyres (jsquyres_at_[hidden])
Date: 2011-02-14 08:57:03


On Feb 14, 2011, at 8:29 AM, Samuel Thibault wrote:

>> 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.

Got it; thanks.

-- 
Jeff Squyres
jsquyres_at_[hidden]
For corporate legal information go to:
http://www.cisco.com/web/about/doing_business/legal/cri/