cpu_utils.h 670 B

1234567891011121314151617181920
  1. // Copyright 2021 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef REMOTING_BASE_CPU_UTILS_H_
  5. #define REMOTING_BASE_CPU_UTILS_H_
  6. namespace remoting {
  7. // Returns true if the CPU meets the minimum hardware requirements (e.g. it
  8. // supports a minimum required instruction set), otherwise false.
  9. bool IsCpuSupported();
  10. // Returns the data alignment (in bytes) required to use the most efficient SIMD
  11. // instructions (SSE3, AVX2, NEON, etc.) supported by the processor.
  12. int GetSimdMemoryAlignment();
  13. } // namespace remoting
  14. #endif // REMOTING_BASE_CPU_UTILS_H_