| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // This file provide utility functions to check CPU features such as SSE2, | 5 // This file provide utility functions to check CPU features such as SSE2, |
| 6 // NEON. | 6 // NEON. |
| 7 | 7 |
| 8 #ifndef MEDIA_BASE_CPU_FEATURES_H_ | 8 #ifndef MEDIA_BASE_CPU_FEATURES_H_ |
| 9 #define MEDIA_BASE_CPU_FEATURES_H_ | 9 #define MEDIA_BASE_CPU_FEATURES_H_ |
| 10 | 10 |
| 11 namespace media { | 11 namespace media { |
| 12 | 12 |
| 13 // Returns true if CPU has MMX support. |
| 14 bool hasMMX(); |
| 15 |
| 16 // Returns true if CPU has SSE support. |
| 17 bool hasSSE(); |
| 18 |
| 13 // Returns true if CPU has SSE2 support. | 19 // Returns true if CPU has SSE2 support. |
| 14 bool hasSSE2(); | 20 bool hasSSE2(); |
| 15 | 21 |
| 16 // Returns true if CPU supports SSE2, SSE3, and SSSE3. | 22 // Returns true if CPU supports SSE2, SSE3, and SSSE3. |
| 17 bool hasSSSE3(); | 23 bool hasSSSE3(); |
| 18 | 24 |
| 19 } // namespace media | 25 } // namespace media |
| 20 | 26 |
| 21 #endif // MEDIA_BASE_CPU_FEATURES_H_ | 27 #endif // MEDIA_BASE_CPU_FEATURES_H_ |
| OLD | NEW |