Message156372
| Author |
vstinner |
| Recipients |
benjamin.peterson, pitrou, skrah, vstinner |
| Date |
2012年03月20日.00:30:49 |
| SpamBayes Score |
2.6889602e-12 |
| Marked as misclassified |
No |
| Message-id |
<1332203451.22.0.724931415173.issue14249@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Attached patch uses an union to make the compiler warning quiet. It should not speed up Python because the function already ensures that the pointer is aligned to the size of a long. It may slow down the function, I don't know gcc enough to guess exactly the impact on performances.
An alternative is to use __attribute__((__may_alias__)), a GCC specific attribute. I don't know the impact on performances of this attribute. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年03月20日 00:30:51 | vstinner | set | recipients:
+ vstinner, pitrou, benjamin.peterson, skrah |
| 2012年03月20日 00:30:51 | vstinner | set | messageid: <1332203451.22.0.724931415173.issue14249@psf.upfronthosting.co.za> |
| 2012年03月20日 00:30:50 | vstinner | link | issue14249 messages |
| 2012年03月20日 00:30:50 | vstinner | create |
|