Language features and reinterpret casts

Don nospam at nospam.com
Tue Sep 21 06:24:18 PDT 2010


BCS wrote:
> Hello Don,
> 
>> BCS wrote:
>>
>>> Hello Don,
>>>
>>>> It's going to be implementation defined behaviour (will depend on
>>>> endianness)
>>>>
>>> Does that matter if the members are the same size?
>>>
>> Definitely -- you'll grab the part of the mantissa, instead of the
>> exponent.
> 
> How would that work? Can a system store ints big-endian and floats 
> little-endian?

Not sure. My limited understanding is that with on PowerPC, Altivec can 
use big-endian floats, even when the PPC is set to little-endian mode. 
Could be wrong, though.
In any case, for 80-bit reals, there is no int which is the same size.


More information about the Digitalmars-d mailing list