Alan Woodland <[EMAIL PROTECTED]> writes:

> This code segfaults on the last line quoted here, which isn't surprising
> because c isn't aligned correctly. My question now is twofold:
> a) Why isn't c aligned how __m128 needs to be? and

Because "operator new[]" has been compiled with "strictest alignment
8 on this platform", which is true for all "regular" types, but
not for SSE :(

> b) How to work around it? Is it even possible to get an array of __m128s
> aligned correctly?

Use memalign() or posix_memalign().

Cheers,
-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
_______________________________________________
help-gplusplus mailing list
help-gplusplus@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to