From 246a2fcb5ebf059b9761cec0d0d4b7c0c1147f17 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Sat, 21 Aug 2010 12:05:40 -0700 Subject: 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 Co-Authored-By: David S. Miller From-SVN: r163446 --- libcpp/ChangeLog | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'libcpp/ChangeLog') diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index 2b3d224..25706ef 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,3 +1,21 @@ +2010-08-21 Richard Henderson + Andi Kleen + David S. Miller + + * 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 '?'. + 2010-06-11 Jakub Jelinek * include/cpplib.h (struct cpp_callbacks): Add user_builtin_macro -- cgit v1.1