In DSP, we need efficiency and sometimes the memory is wasted. In most time we need to align the memory depends on the DSP architecture.
memalign(8, IMAGE_SIZE)
where 8 is byte, allocate 64-bit based memory, totally IMAGE_SIZE
need to check the source of code of 'memalign', how to use malloc to implement?
Wednesday, September 12, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment