blob: 081c659326ca1f0cebc4422561f6d016d7391eee [file] [log] [blame]
digit@chromium.orgfcf6b522013-01-10 02:09:24 +09001// Copyright (c) 2012 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
5#include <cpu-features.h>
6
7#include "base/android/jni_android.h"
8#include "jni/CpuFeatures_jni.h"
9
10namespace base {
11namespace android {
12
tornec510c592015-09-04 20:16:35 +090013jint GetCoreCount(JNIEnv*, const JavaParamRef<jclass>&) {
digit@chromium.orgfcf6b522013-01-10 02:09:24 +090014 return android_getCpuCount();
15}
16
tornec510c592015-09-04 20:16:35 +090017jlong GetCpuFeatures(JNIEnv*, const JavaParamRef<jclass>&) {
digit@chromium.orgfcf6b522013-01-10 02:09:24 +090018 return android_getCpuFeatures();
19}
20
digit@chromium.orgfcf6b522013-01-10 02:09:24 +090021} // namespace android
22} // namespace base