On Apr 19, 2007, at 7:15 PM, Frank Condello wrote: > On 19-Apr-07, at 6:51 PM, Charles Yeomans wrote: >> >> On Apr 19, 2007, at 6:40 PM, Frank Condello wrote: >> >>> I've started declaring into Accelerate.framework and have read that >>> Mac OS X's malloc always uses 16-byte alignment, but I was wondering >>> if I could rely on this alignment from an RB-supplied MemoryBlock. I >>> know this has been discussed before but I couldn't find a definitive >>> yes or no - I suspect (and hope) the answer is yes, if not, I've got >>> a bit more work to do! >> >> Only the RS guys can provide a definitive answer, but they might be >> hesitant to commit. I wrote a quick test that created 10000 distinct >> MemoryBlocks, and their addresses were all multiples of 16. > > I suppose I should've tested that myself before asking ;) > > I'm already caching a pointer to the head of the block and use that > for all my memory manipulations (vectorized or not) so worst case > I'll have to add some bytes and nudge the pointer whenever the block > is resized, but I'd rather not fiddle with things if there's no need.
And there is no reason why you couldn't just allocate memory yourself by calling malloc , valloc, calloc, etc. Charles Yeomans _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
