RE: [GD-Windows] memory allocation routine with alignment
Brought to you by:
vexxed72
From: Wayne C. <wc...@re...> - 2002-05-01 09:19:07
|
> Is there a windows equivalent for GCC memalign() which is > like malloc but > you can speficy the byte alignment you want for the ptr e.g. > memalign( 64, > 1000 ); will return a ptr which is 1000 bytes long and starts > on a 64-byte > boundary. If you're using VC7 or VC6 with the processor pack they both support: _aligned_malloc( size, alignment ) and _aligned_free( ptr ) Wayne -Virus scanned and cleared ok |