blob: 52c786480be628e613a0e9a48400b6ce7fdb6983 [file] [log] [blame]
// Copyright 2021 The Chromium Authors
// 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_