[Mesa-dev] [PATCH 0/6] Slimdown import.[ch] - add c11_stdlib.h wrapper

Emil Velikov emil.l.velikov at gmail.com
Fri Mar 6 08:32:49 PST 2015


C11 introduces the aligned_alloc() function, while mesa already has it's 
own wrapper. Create a new header, and make use of it.

I was aiming to convert gallium as well, although that code diverges 
depending on the debugging state required but wrapping around malloc and 
friends.

#This series points does not cover gallium, as the uses a slightly 
#different approach - i.e. rolls out a custom align_malloc around malloc 
#only when debugging 
#
#latter has 
#convoluted
#extra code for memory debugging. If the latter is unused, we could 
#easily port it over.
#
Cheers,
Emil



More information about the mesa-dev mailing list