This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, libfortran] Use high resolution clock if available, timing cleanup
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Janne Blomqvist <blomqvist dot janne at gmail dot com>
- Cc: Fortran List <fortran at gcc dot gnu dot org>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 31 Jan 2011 12:46:43 -0800
- Subject: Re: [Patch, libfortran] Use high resolution clock if available, timing cleanup
- References: <AANLkTikNqhqPaeAYdf4nac_NrGEGBFvYpEpcJRx=o3UK@mail.gmail.com>
On Mon, Jan 31, 2011 at 10:18:45PM +0200, Janne Blomqvist wrote:
> 2011-01-31 Janne Blomqvist <jb@gcc.gnu.org>
>
> * configure.ac: Check for clock_gettime().
> * configure: Regenerated.
> * config.h.in: Regenerated.
> * intrinsics/time_1.h (__time_1): Rename to gf_cputime, add
> times() fallback.
> (gf_gettime): New function.
> * intrinsics/cpu_time.c (__cpu_time_1): Update to call gf_cputime.
> * intrinsics/date_and_time.c (date_and_time): Use gf_gettime.
> * intrinsics/dtime.c (dtime_sub): Use gf_cputime.
> * intrinsics/etime.c (etime_sub): Use gf_cputime.
> * intrinsics/system_clock.c (system_clock_4): Use gf_gettime.
> (system_clock_8): Use gf_gettime, increase count rate to allow
> nanosecond precision, remove overflow prone branch.
>
OK.
One comment. Why
+AC_DEFINE([HAVE_FEENABLEEXCEPT],[1],[libm includes feenableexcept])])
I did not see a use of fenv facilities in a quick scan of
the patch.
--
Steve