blob: 324eedc4d2ac5bf26d8a1398c009d13d0e745a81 [file] [log] [blame]
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef REMOTING_BASE_CPU_UTILS_H_
#define REMOTING_BASE_CPU_UTILS_H_
namespace remoting {
// Returns true if the CPU meets the minimum hardware requirements (e.g. it
// supports a minimum required instruction set), otherwise false.
bool IsCpuSupported();
// Returns the data alignment (in bytes) required to use the most efficient SIMD
// instructions (SSE3, AVX2, NEON, etc.) supported by the processor.
int GetSimdMemoryAlignment();
} // namespace remoting
#endif // REMOTING_BASE_CPU_UTILS_H_