gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gcl-devel] More Code Cleanup...


From: Robert Alan Byer
Subject: Re: [Gcl-devel] More Code Cleanup...
Date: Thu, 20 Dec 2001 08:00:04 -0500

-----BEGIN PGP SIGNED MESSAGE-----

>> >      return mrand48 () | (mrand48 () << 32);
>> >    .......................^
>>
>> This looks a little alarming.  It would appear that there is some
>> fixed size misconfiguration going on.  My 32 bit machine does not
>> select this version of random.c, so I don't have this code in my
>> build.  Perhaps you can see what type mrand48 is declared, and why the
>> code thinks it can shift it be 32 bits.  (It would seem that a 48bit
>> object would be a likely candidate.  But apparently the compiler does
>> not agree.)
>
>In an old version of the GNU C Library there was a bug that caused
>mrand48() to return only the lower bits of the result.  It got into a
>Red Hat release at one point and therefore became quite widespread.
>This looks like it might be some sort of workaround for that.
>

This is probably the case as I'm not using GNU C but the latest version of 
the DEC C compiler.


 +------------------+--------------------------+---------------+
 | Robert Alan Byer | address@hidden | ICQ #65926579 |
 +------------------+--------------------------+---------------+
 | Send an E-mail request to obtain a copy of my PGP key.      |
 +-------------------------------------------------------------+
 | "It is by caffeine alone I set my mind in motion.  It is by |
 |  cans of cola the thoughts aquire speed, the hands acquire  |
 |  shakes, the shakes become a warning.  It is by caffeine    |
 |  alone I set my mind in motion."                            |
 +-------------------------------------------------------------+


-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv

iQEVAwUBPCHg0KVSqzlBVJbBAQHzRQf/bsRK05FDyR8q2hUu0r5NWwSJNwX2dWMl
ofBKmZJ46XzdFU122mu30r+Q/J2ud/dXjwOZqAYfbxF6Nd3gbTh1JzS2FNjCKU+z
ZCPBZI5zpM4O3c+iH8rW5b2UOkHOi0ffE1wmd/R3zQ1exPknAvN10PlwhMpXLV3X
fcGWYMp8u+rep2NVxF8saU/C2BODOr/B9seNp3NWn0dr8PJarlpslkEt/NUob1E6
TdVcfwL8MtgC+XV3dkL9Bfg7P5co4MQIqusZAPLvFK3Cu9AGOjuC8cq8m+X7Xseh
X/yeFDS6aNvS2QBXuTi7Uy4xocahBtMF7cFsuA/YLEkGL8e6CdaagQ==
=M0mr
-----END PGP SIGNATURE-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]