[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Looking over the source code there is still alot of malloc() calls.
For SSE2 to work properly data must be aligned on 16 byte boundaries.
There also seems to be a function called _al_malloc() which is a
wrapper for malloc().
Instead of regular malloc() SSE2 uses _aligned_malloc() to ensure data
is on 16 byte boundaries.
It would be much easier to simply have _aligned_malloc() replaced at one
single point (in the _al_malloc() )
It can even be #defined in/out for which ever platform is required.
Is there any reason why all the regular malloc()'s can not be changed
to _al_malloc() ?
(please specificy both technical reasons, and release schedule reasons)
I can submit patches for them all, but its not worth doing until i know
its going to get implemented.
aj.