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