Re: [linux-audio-dev] jack ports & alignment

From: Stéphane Letz <letz@email-addr-hidden>
Date: Fri Apr 08 2005 - 10:46:13 EEST

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
Received on Fri Apr 8 12:15:08 2005

This archive was generated by hypermail 2.1.8 : Fri Apr 08 2005 - 12:15:09 EEST