Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(86122)

Side by Side Diff: Modules/_ctypes/libffi_ios/include/ffitarget_armv7.h

Issue 23670: Modifications to support iOS as a development platform
Patch Set: Created 3 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 #ifdef __arm__
2
3 /* -----------------------------------------------------------------*-C-*-
4 ffitarget.h - Copyright (c) 2012 Anthony Green
5 Copyright (c) 2010 CodeSourcery
6 Copyright (c) 1996-2003 Red Hat, Inc.
7
8 Target configuration macros for ARM.
9
10 Permission is hereby granted, free of charge, to any person obtaining
11 a copy of this software and associated documentation files (the
12 ``Software''), to deal in the Software without restriction, including
13 without limitation the rights to use, copy, modify, merge, publish,
14 distribute, sublicense, and/or sell copies of the Software, and to
15 permit persons to whom the Software is furnished to do so, subject to
16 the following conditions:
17
18 The above copyright notice and this permission notice shall be included
19 in all copies or substantial portions of the Software.
20
21 THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND,
22 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
25 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
26 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
28 DEALINGS IN THE SOFTWARE.
29
30 ----------------------------------------------------------------------- */
31
32 #ifndef LIBFFI_TARGET_H
33 #define LIBFFI_TARGET_H
34
35 #ifndef LIBFFI_H
36 #error "Please do not include ffitarget.h directly into your source. Use ffi.h instead."
37 #endif
38
39 #ifndef LIBFFI_ASM
40 typedef unsigned long ffi_arg;
41 typedef signed long ffi_sarg;
42
43 typedef enum ffi_abi {
44 FFI_FIRST_ABI = 0,
45 FFI_SYSV,
46 FFI_VFP,
47 FFI_LAST_ABI,
48 #ifdef __ARM_PCS_VFP
49 FFI_DEFAULT_ABI = FFI_VFP,
50 #else
51 FFI_DEFAULT_ABI = FFI_SYSV,
52 #endif
53 } ffi_abi;
54 #endif
55
56 #define FFI_EXTRA_CIF_FIELDS \
57 int vfp_used; \
58 unsigned short vfp_reg_free, vfp_nargs; \
59 signed char vfp_args[16] \
60
61 #define FFI_TARGET_SPECIFIC_VARIADIC
62 #define FFI_TARGET_HAS_COMPLEX_TYPE
63
64 /* ---- Definitions for closures ----------------------------------------- */
65
66 #define FFI_CLOSURES 1
67 #define FFI_GO_CLOSURES 1
68 #define FFI_NATIVE_RAW_API 0
69
70 #if defined (FFI_EXEC_TRAMPOLINE_TABLE) && FFI_EXEC_TRAMPOLINE_TABLE
71
72 #ifdef __MACH__
73 #define FFI_TRAMPOLINE_SIZE 12
74 #define FFI_TRAMPOLINE_CLOSURE_OFFSET 8
75 #else
76 #error "No trampoline table implementation"
77 #endif
78
79 #else
80 #define FFI_TRAMPOLINE_SIZE 12
81 #define FFI_TRAMPOLINE_CLOSURE_OFFSET FFI_TRAMPOLINE_SIZE
82 #endif
83
84 #endif
85
86
87 #endif
OLDNEW
« no previous file with comments | « Modules/_ctypes/libffi_ios/include/ffitarget_arm64.h ('k') | Modules/_ctypes/libffi_ios/include/ffitarget.h » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+