Ruby  2.7.2p137(2020-10-01revision5445e0435260b449decf2ac16f9d09bae3cafe72)
ffitarget.h
Go to the documentation of this file.
1 /* -----------------------------------------------------------------*-C-*-
2  ffitarget.h - Copyright (c) 2012 Anthony Green
3  Copyright (c) 2010 CodeSourcery
4  Copyright (c) 1996-2003 Red Hat, Inc.
5 
6  Target configuration macros for ARM.
7 
8  Permission is hereby granted, free of charge, to any person obtaining
9  a copy of this software and associated documentation files (the
10  ``Software''), to deal in the Software without restriction, including
11  without limitation the rights to use, copy, modify, merge, publish,
12  distribute, sublicense, and/or sell copies of the Software, and to
13  permit persons to whom the Software is furnished to do so, subject to
14  the following conditions:
15 
16  The above copyright notice and this permission notice shall be included
17  in all copies or substantial portions of the Software.
18 
19  THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND,
20  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
22  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
23  HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
24  WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
26  DEALINGS IN THE SOFTWARE.
27 
28  ----------------------------------------------------------------------- */
29 
30 #ifndef LIBFFI_TARGET_H
31 #define LIBFFI_TARGET_H
32 
33 #ifndef LIBFFI_H
34 #error "Please do not include ffitarget.h directly into your source. Use ffi.h instead."
35 #endif
36 
37 #ifndef LIBFFI_ASM
38 typedef unsigned long ffi_arg;
39 typedef signed long ffi_sarg;
40 
41 typedef enum ffi_abi {
46 #ifdef __ARM_PCS_VFP
48 #else
50 #endif
52 #endif
53 
54 #define FFI_EXTRA_CIF_FIELDS \
55  int vfp_used; \
56  short vfp_reg_free, vfp_nargs; \
57  signed char vfp_args[16] \
58 
59 /* Internally used. */
60 #define FFI_TYPE_STRUCT_VFP_FLOAT (FFI_TYPE_LAST + 1)
61 #define FFI_TYPE_STRUCT_VFP_DOUBLE (FFI_TYPE_LAST + 2)
62 
63 #define FFI_TARGET_SPECIFIC_VARIADIC
64 
65 /* ---- Definitions for closures ----------------------------------------- */
66 
67 #define FFI_CLOSURES 1
68 #define FFI_TRAMPOLINE_SIZE 20
69 #define FFI_NATIVE_RAW_API 0
70 
71 #endif
ffi_arg
unsigned long ffi_arg
Definition: ffitarget.h:30
ffi_abi
ffi_abi
Definition: ffitarget.h:34
FFI_VFP
@ FFI_VFP
Definition: ffitarget.h:44
FFI_SYSV
@ FFI_SYSV
Definition: ffitarget.h:36
FFI_LAST_ABI
@ FFI_LAST_ABI
Definition: ffitarget.h:37
FFI_DEFAULT_ABI
@ FFI_DEFAULT_ABI
Definition: ffitarget.h:38
ffi_sarg
signed long ffi_sarg
Definition: ffitarget.h:31
FFI_FIRST_ABI
@ FFI_FIRST_ABI
Definition: ffitarget.h:35