[vsipl++] Matlab IO Patch
Mark Mitchell
mark at codesourcery.com
Thu May 25 14:46:44 UTC 2006
Jules Bergmann wrote:
> int32_t pad[Dim%2];
> data_element array_name_header;
Zero-element arrays are not valid ISO C++. However, if data_element is
a 64-bit type, then it will be aligned to an 8-byte boundary on most
systems.
> For int, we need some support from configure.ac to determine whether int is 32 bits (miINT32) or 64 bits (miINT64).
Why not just:
template <>
struct Matlab_type_traits<int>
{
static int const data_type = sizeof (int) == 4) ? miINT32 : miINT64;
}
--
Mark Mitchell
CodeSourcery
mark at codesourcery.com
(650) 331-3385 x713
More information about the vsipl++
mailing list