diff options
author | Richard Henderson <rth@redhat.com> | 2010-08-21 12:05:40 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2010-08-21 12:05:40 -0700 |
commit | 246a2fcb5ebf059b9761cec0d0d4b7c0c1147f17 (patch) | |
tree | be59d009f746b778dfd3ea463d4b4b994b456230 /libcpp/system.h | |
parent | 1d0134b3ccdc7e224f89540f05898742b13fecf9 (diff) | |
download | gcc-246a2fcb5ebf059b9761cec0d0d4b7c0c1147f17.zip gcc-246a2fcb5ebf059b9761cec0d0d4b7c0c1147f17.tar.gz gcc-246a2fcb5ebf059b9761cec0d0d4b7c0c1147f17.tar.bz2 |
Vectorize fast path of _cpp_clean_line.
* configure.ac (AC_C_BIGENDIAN, AC_TYPE_UINTPTR_T): New tests.
(ssize_t): Check via AC_TYPE_SSIZE_T instead of AC_CHECK_TYPE.
(ptrdiff_t): Check via AC_CHECK_TYPE.
* config.in, configure: Rebuild.
* system.h: Include stdint.h, if available.
* lex.c (WORDS_BIGENDIAN): Provide default.
(acc_char_mask_misalign, acc_char_replicate, acc_char_cmp,
acc_char_index, search_line_acc_char, repl_chars, search_line_mmx,
search_line_sse2, search_line_sse42, init_vectorized_lexer,
search_line_fast): New.
(_cpp_clean_line): Use search_line_fast. Restructure the fast
loop to make it clear when we're leaving the loop. Stay in the
fast loop for non-trigraph '?'.
Co-Authored-By: Andi Kleen <ak@linux.intel.com>
Co-Authored-By: David S. Miller <davem@davemloft.net>
From-SVN: r163446
Diffstat (limited to 'libcpp/system.h')
-rw-r--r-- | libcpp/system.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libcpp/system.h b/libcpp/system.h index 2472799..1a74734 100644 --- a/libcpp/system.h +++ b/libcpp/system.h @@ -29,6 +29,9 @@ along with GCC; see the file COPYING3. If not see #ifdef HAVE_STDDEF_H # include <stddef.h> #endif +#ifdef HAVE_STDINT_H +# include <stdint.h> +#endif #include <stdio.h> |