summaryrefslogtreecommitdiffstats
path: root/gcc/ada/a-reatim.ads
diff options
context:
space:
mode:
authorbosch <bosch@138bc75d-0d04-0410-961f-82ee72b054a4>2001-10-31 00:07:54 +0000
committerbosch <bosch@138bc75d-0d04-0410-961f-82ee72b054a4>2001-10-31 00:07:54 +0000
commit784b5d91dba7b668588fa608f5670a561fc3d553 (patch)
tree9028e96337de515589d9449ff638ba6ba68a0a47 /gcc/ada/a-reatim.ads
parent7ae0fe4438059aa4269cdaa14cf0e5d8b3600280 (diff)
downloadppe42-gcc-784b5d91dba7b668588fa608f5670a561fc3d553.tar.gz
ppe42-gcc-784b5d91dba7b668588fa608f5670a561fc3d553.zip
* a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
to accommodate all its possible values. * a-reatim.adb (Split): Special-case handling of Time_Span_First and of small absolute values of T. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46660 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/a-reatim.ads')
-rw-r--r--gcc/ada/a-reatim.ads10
1 files changed, 7 insertions, 3 deletions
diff --git a/gcc/ada/a-reatim.ads b/gcc/ada/a-reatim.ads
index 9fe47621998..563565bc663 100644
--- a/gcc/ada/a-reatim.ads
+++ b/gcc/ada/a-reatim.ads
@@ -6,9 +6,9 @@
-- --
-- S p e c --
-- --
--- $Revision: 1.24 $ --
+-- $Revision$
-- --
--- Copyright (C) 1992-1998 Free Software Foundation, Inc. --
+-- Copyright (C) 1992-2001 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 --
@@ -88,7 +88,11 @@ package Ada.Real_Time is
function Microseconds (US : Integer) return Time_Span;
function Milliseconds (MS : Integer) return Time_Span;
- type Seconds_Count is new Integer range -Integer'Last .. Integer'Last;
+ -- With duration represented as a 64-bit number with a delta of
+ -- 10 ** (-9), the number of seconds in Duration'Last does not fit
+ -- in 32 bits.
+
+ type Seconds_Count is range -2 ** 63 .. 2 ** 63 - 1;
procedure Split (T : Time; SC : out Seconds_Count; TS : out Time_Span);
function Time_Of (SC : Seconds_Count; TS : Time_Span) return Time;
OpenPOWER on IntegriCloud