diff options
author | Charles Lane <lane@DUPHY4.Physics.Drexel.Edu> | 2001-10-17 05:10:53 -0400 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-10-18 12:17:16 +0000 |
commit | bb6f4497de510b4ef8ece50af67246912d14fb8e (patch) | |
tree | 6f7e45279f9b70493fc324eee0140ec7233f16bf /vms | |
parent | fd7b6849d7cf47f2fe101ad9761adae57a573493 (diff) | |
download | perl-bb6f4497de510b4ef8ece50af67246912d14fb8e.tar.gz |
try#2: [proposed PATCH Perl@12401] ieee floats, rand() & old systems
Message-Id: <011017090944.15ad2e@DUPHY4.Physics.Drexel.Edu>
p4raw-id: //depot/perl@12491
Diffstat (limited to 'vms')
-rw-r--r-- | vms/vms.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -6935,6 +6935,15 @@ init_os_extras() store_pipelocs(aTHX); +#ifdef Drand01_is_rand +/* this hackery brought to you by a bug in DECC for /ieee=denorm */ + { + int ix = RAND_MAX; + float x = (float)ix; + PL_my_inv_rand_max = 1./x; + } +#endif + return; } |