Le 8 avr. 05, à 00:42, Tim Blechmann a écrit :
hi all,
just a short question about jack ...
the pointer that
void *jack_port_get_buffer (jack_port_t *, jack_nframes_t);
returns, is that 128 bit aligned (for simd use)?
thanks ... tim
--
Yes.
The low level port allocation code does that : in poll.c
jack_pool_alloc (size_t bytes)
{
#ifdef HAVE_POSIX_MEMALIGN
void* m;
int err = posix_memalign (&m, 16, bytes);
return (!err) ? m : 0;
#else
return malloc (bytes);
#endif /* HAVE_POSIX_MEMALIGN */
}
Stephane Letz