mem: align memory to requested alignment

Improve the allocators to always align the buffer memory to the
requested alignment
Use aligned read and writes for sse functions and check alignment,
optionally falling back to unaligned path.
Add more tests and benchmark cases
Check and warn for misaligned memory in plugins.
This commit is contained in:
Wim Taymans 2019-01-24 18:28:52 +01:00
parent dd66469570
commit 13bf70a8dd
19 changed files with 736 additions and 516 deletions

View file

@ -487,8 +487,6 @@ static int port_set_format(struct spa_node *node,
info.media_subtype != SPA_MEDIA_SUBTYPE_raw)
return -EINVAL;
spa_debug_pod(0, NULL, format);
if (spa_format_audio_raw_parse(format, &info.info.raw) < 0)
return -EINVAL;