OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/tools/balsa/balsa_frame.h" | 5 #include "net/tools/balsa/balsa_frame.h" |
6 | 6 |
7 // Visual C++ defines _M_IX86_FP as 2 if the /arch:SSE2 compiler option is | 7 // Visual C++ defines _M_IX86_FP as 2 if the /arch:SSE2 compiler option is |
8 // specified. | 8 // specified. |
9 #if !defined(__SSE2__) && _M_IX86_FP == 2 | 9 #if !defined(__SSE2__) && _M_IX86_FP == 2 |
10 #define __SSE2__ 1 | 10 #define __SSE2__ 1 |
11 #endif | 11 #endif |
12 | 12 |
13 #include <assert.h> | 13 #include <assert.h> |
14 #if __SSE2__ | 14 #if __SSE2__ |
15 #include <emmintrin.h> | 15 #include <emmintrin.h> |
16 #endif // __SSE2__ | 16 #endif // __SSE2__ |
17 | 17 |
18 #include <limits> | 18 #include <limits> |
19 #include <string> | 19 #include <string> |
20 #include <utility> | 20 #include <utility> |
21 #include <vector> | 21 #include <vector> |
22 | 22 |
23 #include "base/logging.h" | 23 #include "base/logging.h" |
24 #include "base/port.h" | |
25 #include "base/strings/string_piece.h" | 24 #include "base/strings/string_piece.h" |
26 #include "net/tools/balsa/balsa_enums.h" | 25 #include "net/tools/balsa/balsa_enums.h" |
27 #include "net/tools/balsa/balsa_headers.h" | 26 #include "net/tools/balsa/balsa_headers.h" |
28 #include "net/tools/balsa/balsa_visitor_interface.h" | 27 #include "net/tools/balsa/balsa_visitor_interface.h" |
29 #include "net/tools/balsa/buffer_interface.h" | 28 #include "net/tools/balsa/buffer_interface.h" |
30 #include "net/tools/balsa/simple_buffer.h" | 29 #include "net/tools/balsa/simple_buffer.h" |
31 #include "net/tools/balsa/split.h" | 30 #include "net/tools/balsa/split.h" |
32 #include "net/tools/balsa/string_piece_utils.h" | 31 #include "net/tools/balsa/string_piece_utils.h" |
33 | 32 |
34 #if defined(COMPILER_MSVC) | 33 #if defined(COMPILER_MSVC) |
(...skipping 1532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1567 << "$$$$$$$$$$$$$$$" | 1566 << "$$$$$$$$$$$$$$$" |
1568 << " consumed: " << (current - input); | 1567 << " consumed: " << (current - input); |
1569 if (Error()) { | 1568 if (Error()) { |
1570 LOG(INFO) << BalsaFrameEnums::ErrorCodeToString(ErrorCode()); | 1569 LOG(INFO) << BalsaFrameEnums::ErrorCodeToString(ErrorCode()); |
1571 } | 1570 } |
1572 #endif // DEBUGFRAMER | 1571 #endif // DEBUGFRAMER |
1573 return current - input; | 1572 return current - input; |
1574 } | 1573 } |
1575 | 1574 |
1576 } // namespace net | 1575 } // namespace net |
OLD | NEW |