This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch libfortran/28452] random intrinsics for large reals


On Thu, Jul 27, 2006 at 10:53:04PM -0700, Steve Kargl wrote:

> One thing I want meant to ask earlier concerns the masking.
> For example with the real(4), you grab 32-bit then mask off
> a small portion to give you the 24-bits.  Is this ok with
> both little and big endian hardware?

The masking is done with the unsigned int _values_, independent of
representation (which could be big-endian, little-endian or NUXI).
After that, the unsigned value is converted to real(4).

Regards
	Thomas


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]