longlong: tune, particularly for common case of c99
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 16 Feb 2011 09:22:38 +0000 (01:22 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 16 Feb 2011 09:23:03 +0000 (01:23 -0800)
commit157f0c2dde33c4e5067b3fc0fab27cf1f6e219bc
treecc1fe8aefd5f2ad031d3c643cc493a9ad834c5de
parent83ca5b985b375b6445d54d99e523508f075a497e
longlong: tune, particularly for common case of c99

* m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
or running anything if c99, or if unsigned long long int does not
work.  In either case, we know the answer without further tests.
Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
it at most once, and use its results for both long long int and
unsigned long long int.  This is more likely to be efficient in
the common case where the program wants to check for both long
long int and unsigned long long int.
(AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
since the answer is already known.
ChangeLog
m4/longlong.m4