[OpenBIOS] [PATCH 2/5] Introduce ofmem_malloc_align() function for arbitrary alignment.

Mark Cave-Ayland mark.cave-ayland at siriusit.co.uk
Wed Dec 22 11:28:40 CET 2010


Blue Swirl wrote:

>>  /* malloc interface */
>> +extern void* ofmem_malloc_align( size_t size, int alignment );
> 
> The standard function with this signature would be posix_memalign(),
> so how about ofmem_memalign() or even ofmem_posix_memalign()?

ofmem_posix_memalign() seems to fit the convention better, so I'll go 
with that unless anyone has any objections?

>  'extern' isn't useful for function prototypes.

Yeah... again just copying the existing style of the file.


ATB,

Mark.

-- 
Mark Cave-Ayland - Senior Technical Architect
PostgreSQL - PostGIS
Sirius Corporation plc - control through freedom
http://www.siriusit.co.uk
t: +44 870 608 0063

Sirius Labs: http://www.siriusit.co.uk/labs



More information about the OpenBIOS mailing list