David 'Digit' Turner | 045bdbe | 2014-04-28 22:26:52 +0200 | [diff] [blame] | 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 | |