This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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 Fri, Jul 28, 2006 at 07:44:26AM +0200, Thomas Koenig wrote:
> I just found one thing that was wrong with my patch:  rand() could
> return 1.0 in some cases because of an incorrect shift.  I have
> attached the correct patch to rand.c.
> 
> If you want me to resubmit the whole patch, please tell me so :-)
> 

That won't be necessary.  Hopefully, no one uses rand().

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?

-- 
Steve


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