• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 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_UTILS_HOST_BITNESS_H
13 #define ANDROID_UTILS_HOST_BITNESS_H
14 
15 #include "android/utils/compiler.h"
16 
17 ANDROID_BEGIN_HEADER
18 
19 // Return the bitness of the host machine this program is running on.
20 // This is independent of whether the current executable is a 32 or 64
21 // bit binary. Returns 32 or 64.
22 int android_getHostBitness(void);
23 
24 ANDROID_END_HEADER
25 
26 #endif  // ANDROID_UTILS_HOST_BITNESS_H