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