This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
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