[eigen] strange sizeof on windows |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: [eigen] strange sizeof on windows
- From: "Benoit Jacob" <jacob.benoit.1@xxxxxxxxx>
- Date: Mon, 5 Jan 2009 16:05:49 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=HJuQBAN3UBhbBm4Be1JV4iHgbwCfYsrFz2cAARJMXII=; b=TTfVX+oEWTCF0FlpIegES1xllwiWkv7BaVBThU2+E2S5Asia2wBFI46UqTvIe0UPRg xL4YM7ocLouKFeOkyjLrndX6prUE9Hlb/3uQuLYAkx7rfZuYtX+5N6N0Eqg7CbK4Dws6 bvPNH9QQECbr0BHW9IsPpif9glQPzExXstf6U=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=SMxdvmQWX0U/7/aVxL5TJD9w2nam63kXVEGv4YjsOS6QP14FStzkY5eBQ4e20ydgxN JFXU1OAUZgt3cm5fNxvKFOXZJfkhZLHjT80FckFQNdMCjqvCzZjOildXDLxpWE/7ia/r eKX0b+yZU3NNjCEeyb4FdKHwl1qsYef1g9QDU=
Hi,
Yesterday with Armin we hit a very very strange issue with MSVC 2008
(vectorization enabled).
The test_sizeof was failing for him, on the first subtest (Matrix<float,1,1>).
It turned out that he had sizeof(Matrix<float,1,1>)=8, sizeof(float)=4.
What can possibly have happened?
I've been thinking about possible bugs in the logic of
ei_matrix_storage but that wouldn't be compiler-dependent and of
course I don't have this issue here with gcc...
Cheers,
Benoit
---