OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // MSVC++ requires this to be set before any other includes to get M_PI. | 5 // MSVC++ requires this to be set before any other includes to get M_PI. |
6 #define _USE_MATH_DEFINES | 6 #define _USE_MATH_DEFINES |
7 #include <cmath> | 7 #include <cmath> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/cpu.h" | 10 #include "base/cpu.h" |
11 #include "base/memory/aligned_memory.h" | 11 #include "base/memory/aligned_memory.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
14 #include "base/strings/stringize_macros.h" | 14 #include "base/strings/stringize_macros.h" |
15 #include "base/time.h" | 15 #include "base/time.h" |
16 #include "media/base/vector_math.h" | 16 #include "media/base/vector_math.h" |
17 #include "media/base/vector_math_testing.h" | 17 #include "media/base/vector_math_testing.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
19 | 19 |
20 using base::TimeTicks; | 20 using base::TimeTicks; |
21 using std::fill; | 21 using std::fill; |
22 | 22 |
23 // Command line switch for runtime adjustment of benchmark iterations. | 23 // Command line switch for runtime adjustment of benchmark iterations. |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 STRINGIZE(FMUL_FUNC) " (unaligned).\n", | 282 STRINGIZE(FMUL_FUNC) " (unaligned).\n", |
283 total_time_optimized_aligned_ms, | 283 total_time_optimized_aligned_ms, |
284 total_time_c_ms / total_time_optimized_aligned_ms, | 284 total_time_c_ms / total_time_optimized_aligned_ms, |
285 total_time_optimized_unaligned_ms / total_time_optimized_aligned_ms); | 285 total_time_optimized_unaligned_ms / total_time_optimized_aligned_ms); |
286 #endif | 286 #endif |
287 } | 287 } |
288 | 288 |
289 #undef FMUL_FUNC | 289 #undef FMUL_FUNC |
290 | 290 |
291 } // namespace media | 291 } // namespace media |
OLD | NEW |