• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2014 Linux Test Project
3  *  Cyril Hrubis <chrubis@suse.cz>
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License as
7  * published by the Free Software Foundation; either version 2 of
8  * the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it would be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write the Free Software Foundation,
17  * Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18  */
19 
20 #ifndef ABISIZE_H__
21 #define ABISIZE_H__
22 
23 /*
24  * Determines if we have to split up 64 bit arguments or not
25  *
26  * Deals with 32bit ABIs that have 64bit syscalls
27  */
28 #define LTP_USE_64_ABI \
29      (defined(__mips__) && _MIPS_SIM == _ABIN32) || \
30      (defined(__x86_64__) && defined(__ILP32__)) || \
31      (defined(__aarch64__) && defined(__ILP32__)) || \
32      __WORDSIZE == 64
33 
34 #endif /* ABISIZE_H__ */
35