mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-13 05:40:42 +01:00

Before this CL, functions declared in cpu_features_wrapper.h where not defined in the same build target, causing brittle builds that might fail at link time if the binary was not depending on //system_wrappers (the target with the definitions), violating [1]. This CL moves everything into //system_wrappers and also moves cpu_features_wrapper.h definitions from C to C++ (in order to be able to add the definitions to a C++ build target like //system_wrappers). [1] - https://webrtc.googlesource.com/src/+/refs/heads/master/style-guide.md#h-cc-pairs Bug: None Change-Id: I5a0009cddb17206b19f2a71eeba722faacc4bcae Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/183380 Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Cr-Commit-Position: refs/heads/master@{#32039}
15 lines
520 B
C++
15 lines
520 B
C++
/*
|
|
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
#include <cpu-features.h>
|
|
|
|
uint64_t WebRtc_GetCPUFeaturesARM(void) {
|
|
return android_getCpuFeatures();
|
|
}
|