OSDN Git Service

2005-03-29 Robert Dewar <dewar@adacore.com>
[pf3gnuchains/gcc-fork.git] / gcc / ada / a-nuflra.ads
index 331ece7..dacdd7c 100644 (file)
@@ -6,8 +6,7 @@
 --                                                                          --
 --                                 S p e c                                  --
 --                                                                          --
---                                                                          --
---          Copyright (C) 1992-1998 Free Software Foundation, Inc.          --
+--          Copyright (C) 1992-2002 Free Software Foundation, Inc.          --
 --                                                                          --
 -- This specification is derived from the Ada Reference Manual for use with --
 -- GNAT. The copyright notice above, and the license provisions that follow --
@@ -44,8 +43,7 @@
 --  excellent randomness properties. For further details, see the
 --  paper "Fast Generation of Trustworthy Random Numbers", by Robert
 --  Eachus, which describes both the algorithm and the efficient
---  implementation approach used here. This paper is available at
---  the Ada Core Technologies web site (http://www.gnat.com).
+--  implementation approach used here.
 
 with Interfaces;
 
@@ -76,7 +74,10 @@ package Ada.Numerics.Float_Random is
 
 private
    type Int is new Interfaces.Integer_32;
-   type Flt is digits 14;
+
+   --  We prefer to use 14 digits for Flt, but some targets are more limited
+
+   type Flt is digits Positive'Min (14, Long_Long_Float'Digits);
 
    K1   : constant := 94_833_359;
    K1F  : constant := 94_833_359.0;