This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, libfortran] Use high resolution clock if available, timing cleanup


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]