[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: _mm_add_ps SIGSEGV
From: |
Alan Woodland |
Subject: |
Re: _mm_add_ps SIGSEGV |
Date: |
Tue, 06 Jun 2006 14:55:10 +0100 |
User-agent: |
Debian Thunderbird 1.0.2 (X11/20060423) |
Paul Pluzhnikov wrote:
> Alan Woodland <ajw05@aber.ac.uk> writes:
>>b) How to work around it? Is it even possible to get an array of __m128s
>>aligned correctly?
>
> Use memalign() or posix_memalign().
Thanks again, the following appears to do the trick:
__m128 *c;
posix_memalign(reinterpret_cast<void**>(&c), __alignof__(__m128),
sizeof(__m128)*10);
Thanks,
Alan