This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients Eli.Stevens, asvetlov, belopolsky, mark.dickinson, mark.wiebe, pitrou
Date 2012-04-04.15:25:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1333552821.3401.7.camel@localhost.localdomain>
In-reply-to <1333552667.44.0.655510518384.issue11734@psf.upfronthosting.co.za>
Content
> I used half-float in GPU programming and from my perspective it was
> just native. There are no half-float in C, right. But there are
> half-floats used in NVIDIA libraries for example and I like to think
> used format is native and platform-depended in general. Correct me if
> I'm mistaking.

By "native", the struct module means there is a corresponding C type and
therefore corresponding rules for size and alignment, as implemented by
the C compiler. GPU structure layout is another matter, as the C
compiler doesn't target that (not in a standard setup, anyway).

Apparently the patch takes the stance that the corresponding C type (for
size and alignment) is "short", which I guess is an acceptable
compromise, but still a bit weird.
History
Date User Action Args
2012-04-04 15:25:35pitrousetrecipients: + pitrou, mark.dickinson, belopolsky, asvetlov, Eli.Stevens, mark.wiebe
2012-04-04 15:25:34pitroulinkissue11734 messages
2012-04-04 15:25:34pitroucreate