Re: [eigen] question on alignment |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] question on alignment
- From: Hauke Heibel <hauke.heibel@xxxxxxxxx>
- Date: Wed, 10 Oct 2012 13:16:10 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=z9yOyPpbdpUt+E7iIFxjFUSMwHCtCFxj6eMvGyWcQ2g=; b=dE1tE9KVheLMTXRpNIBTNnyG1SqrwIZz2lW8Hgfm+j6wMA0rCBckiKz1OcocqRTLBb +ZvrxdochvUJDSmcJzmwKXSooIM2W5JDAiTASXuZ7Ea7HAKvN8zJfT+3BzCJk7gHBVgY 9CeOa9hhBZUUvaLz7uZAuuRXoNcWKq30Kn9WxxS//NgKsB/uVI0crzsdJPyfmLmWIgC8 e9yNP1Nm5yamAzU7V7zMrPYz3VkMg76j3n/mZTR1UfwJMFrVNb9rAQv84BKKlvnZ/oT5 XcfuskddfYWqHi1WElJ6i7YkPJ3ybq+tYzEvzD3unuANm8yEjUEUwssDB3Yij0gE533j kNUA==
On Wed, Oct 10, 2012 at 11:37 AM, Sylvain Pointeau
<sylvain.pointeau@xxxxxxxxx> wrote:
> Is it happening to everybody to end up with all classes having
> EIGEN_MAKE_ALIGNED_OPERATOR_NEW?
There exist exceptions but they come at a price. You will most likely
loose portability.
I am e.g. developing solely with VC compilers and only in 64bit mode -
this is one of those rare and special cases where I know that
everything is properly aligned and I do not need to use
EIGEN_MAKE_ALIGNED_OPERATOR_NEW nor Eigen::aligned_allocator. I guess
you can imagine the issues I would be facing when I wanted to go back
to 32bit code, or maybe simply switch to another compiler which does
not ensure this alignment.
Regards,
Hauke