• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (C) 2014 The Android Open Source Project
2 //
3 // This software is licensed under the terms of the GNU General Public
4 // License version 2, as published by the Free Software Foundation, and
5 // may be copied, distributed, and modified under those terms.
6 //
7 // This program is distributed in the hope that it will be useful,
8 // but WITHOUT ANY WARRANTY; without even the implied warranty of
9 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10 // GNU General Public License for more details.
11 
12 #ifndef ANDROID_CPU_ACCELERATOR_H
13 #define ANDROID_CPU_ACCELERATOR_H
14 
15 #include <stdbool.h>
16 
17 #include "android/utils/compiler.h"
18 
19 ANDROID_BEGIN_HEADER
20 
21 // Returns true if CPU acceleration is possible on this machine.
22 // If |status| is not NULL, on exit, |*status| will be set to a
23 // heap-allocated string describing the status of acceleration,
24 // to be freed by the caller.
25 bool android_hasCpuAcceleration(char** status);
26 
27 ANDROID_END_HEADER
28 
29 #endif  // ANDROID_CPU_ACCELERATOR_H
30 
31