This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Define CLOCKS_PER_SEC type to the type clock_t
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Paul Eggert <eggert at cs dot ucla dot edu>
- Cc: "H.J. Lu" <hjl dot tools at gmail dot com>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Tue, 06 Jan 2015 15:22:23 +0100
- Subject: Re: [PATCH] Define CLOCKS_PER_SEC type to the type clock_t
- Authentication-results: sourceware.org; auth=none
- References: <20150105204653 dot GA31001 at intel dot com> <54AB1115 dot 80608 at cs dot ucla dot edu> <CAMe9rOrExjqKKFUkjcN+4SzzouGQ7yyq8RnfWxKmotEaQ6aZRQ at mail dot gmail dot com> <CAMe9rOpBRqzqwhefrKG9eZro8qXwRBc=+-WT5Wx4xbNMzJJ3fg at mail dot gmail dot com> <CAMe9rOoZPZAfWt_jfci2XOhPcJde09mOz8RtCs_6S1dqU5OzqA at mail dot gmail dot com> <54AB2185 dot 2060402 at cs dot ucla dot edu> <CAMe9rOrpk5vHFjL=EFNByhwBSj34zYFc7+YyfyCUt8JJjD0idw at mail dot gmail dot com> <54AB68E7 dot 7050903 at cs dot ucla dot edu>
Paul Eggert <eggert@cs.ucla.edu> writes:
> H.J. Lu wrote:
>> assert (CLOCKS_PER_SEC == 1000000l);
>
> This fails only at runtime if the value is wrong, which is not as good as
> checking it at compile-time.
Does it matter?
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."