Purpose of 8-byte buffer alignment in cpu-mix-test.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Peter!

Do you happen to remember why the audio buffers in run_mix_test() in
src/tests/cpu-mix-test.c are forced to have 8-byte alignment? I plan to
replace the stack-allocated buffers with regular memblocks, and the
memblock backing memory is only aligned to 4 bytes on 32-bit machines.
It's possible to still have the old alignment behaviour, but that
requires extra code, and if 4-byte alignment is equally fine, then I'd
prefer to avoid the extra code.

-- 
Tanu

https://www.patreon.com/tanuk


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux