blob: 40231b65afcabf3c356b954a739b71b38f8674be [file] [log] [blame]
henrikg@webrtc.orgc58ef082011-11-08 08:44:17 +00001/*
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
Henrik Kjellander98f53512015-10-28 18:17:40 +010011#include "webrtc/system_wrappers/include/cpu_info.h"
henrikg@webrtc.orgc58ef082011-11-08 08:44:17 +000012
tommiefefda62015-08-20 05:04:09 -070013#include "webrtc/base/systeminfo.h"
henrikg@webrtc.orgc58ef082011-11-08 08:44:17 +000014
15namespace webrtc {
16
pbos@webrtc.org046deb92013-04-09 09:06:11 +000017uint32_t CpuInfo::DetectNumberOfCores() {
tommiefefda62015-08-20 05:04:09 -070018 return static_cast<uint32_t>(rtc::SystemInfo::GetMaxCpus());
henrikg@webrtc.orgc58ef082011-11-08 08:44:17 +000019}
20
pbos@webrtc.orgd900e8b2013-07-03 15:12:26 +000021} // namespace webrtc