On 17-Feb-2004, David Bateman <address@hidden> wrote:
| Given that we can't get the correct data alignment, we do need to
check the
| alignment for the plans. So we need the cast to int or long? Is
|
| char in_align = in & 0xF;
| char out_align = out & 0xF;
|
| alright? Will it be correct for all platforms?
G++ won't compile that if in and out are pointers to double. So I
changed it to
char in_align = (reinterpret_cast<long> (in)) & 0xF;
which I think will work provided that pointers and long are the same
size.