Message305322
| Author |
vstinner |
| Recipients |
skrah, vstinner |
| Date |
2017年10月31日.18:07:15 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1509473235.53.0.213398074469.issue31912@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> I think PyMem_Malloc() should guarantee alignof(max_align_t).
Do you mean the C++ std::max_align_t? Does C99 have something like that?
The Linux malloc() manual page says:
"The malloc() and calloc() functions return a pointer to the allocated memory, which is suitably aligned for any built-in type."
But I don't know the list of C built-in types. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2017年10月31日 18:07:15 | vstinner | set | recipients:
+ vstinner, skrah |
| 2017年10月31日 18:07:15 | vstinner | set | messageid: <1509473235.53.0.213398074469.issue31912@psf.upfronthosting.co.za> |
| 2017年10月31日 18:07:15 | vstinner | link | issue31912 messages |
| 2017年10月31日 18:07:15 | vstinner | create |
|