summaryrefslogtreecommitdiff
path: root/libgfortran
diff options
context:
space:
mode:
authorkargl <kargl@138bc75d-0d04-0410-961f-82ee72b054a4>2006-09-29 22:21:53 +0000
committerkargl <kargl@138bc75d-0d04-0410-961f-82ee72b054a4>2006-09-29 22:21:53 +0000
commita60b76866580ee35baf3debb2b0e373cf1bcb25d (patch)
tree6152eaff809d423601fd290a1afba7817d1f7540 /libgfortran
parent6c342df1f56a88bb167297d888c44062efb37cc4 (diff)
downloadgcc-a60b76866580ee35baf3debb2b0e373cf1bcb25d.tar.gz
2006-09-29 Steven G. Kargl <kargl@gcc.gnu.org>
* intrinsics/cpu_time.c: Add cpu_time_10 and cpu_time_16 routines. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117320 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran')
-rw-r--r--libgfortran/ChangeLog4
-rw-r--r--libgfortran/intrinsics/cpu_time.c24
2 files changed, 28 insertions, 0 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index 84744632e93..8b51599e3de 100644
--- a/libgfortran/ChangeLog
+++ b/libgfortran/ChangeLog
@@ -1,3 +1,7 @@
+2006-09-29 Steven G. Kargl <kargl@gcc.gnu.org>
+
+ * intrinsics/cpu_time.c: Add cpu_time_10 and cpu_time_16 routines.
+
2006-09-28 Francois-Xavier Coudert <coudert@clipper.ens.fr>
* Makefile.am: Install libgfortranbegin inside compiler libraries
diff --git a/libgfortran/intrinsics/cpu_time.c b/libgfortran/intrinsics/cpu_time.c
index 8469a4381aa..baee1f45445 100644
--- a/libgfortran/intrinsics/cpu_time.c
+++ b/libgfortran/intrinsics/cpu_time.c
@@ -171,6 +171,30 @@ void cpu_time_8 (GFC_REAL_8 *time)
*time = sec + usec * (GFC_REAL_8)1.e-6;
}
+#ifdef HAVE_GFC_REAL_10
+extern void cpu_time_10 (GFC_REAL_10 *);
+export_proto(cpu_time_10);
+
+void cpu_time_10 (GFC_REAL_10 *time)
+{
+ long sec, usec;
+ __cpu_time_1 (&sec, &usec);
+ *time = sec + usec * (GFC_REAL_10)1.e-6;
+}
+#endif
+
+#ifdef HAVE_GFC_REAL_16
+extern void cpu_time_16 (GFC_REAL_16 *);
+export_proto(cpu_time_16);
+
+void cpu_time_16 (GFC_REAL_16 *time)
+{
+ long sec, usec;
+ __cpu_time_1 (&sec, &usec);
+ *time = sec + usec * (GFC_REAL_16)1.e-6;
+}
+#endif
+
extern void second_sub (GFC_REAL_4 *);
export_proto(second_sub);