summaryrefslogtreecommitdiff
path: root/vms
diff options
context:
space:
mode:
authorCharles Lane <lane@DUPHY4.Physics.Drexel.Edu>2001-10-17 05:10:53 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2001-10-18 12:17:16 +0000
commitbb6f4497de510b4ef8ece50af67246912d14fb8e (patch)
tree6f7e45279f9b70493fc324eee0140ec7233f16bf /vms
parentfd7b6849d7cf47f2fe101ad9761adae57a573493 (diff)
downloadperl-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.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/vms/vms.c b/vms/vms.c
index fd02f851bd..bd9ed125b4 100644
--- a/vms/vms.c
+++ b/vms/vms.c
@@ -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;
}