Mercurial > pub > dyncall > dyncall
annotate dyncall/dyncall_call_arm32_arm_armhf.h @ 167:da1d79ed3436
- chmod -x some files that had x set by mistake
author | cslag |
---|---|
date | Thu, 05 Jan 2017 11:10:39 +0100 |
parents | 523c45dfa8fb |
children | f5577f6bf97a |
rev | line source |
---|---|
0 | 1 /* |
2 | |
3 Package: dyncall | |
4 Library: dyncall | |
5 File: dyncall/dyncall_call_arm32_arm_armhf.h | |
6 Description: | |
7 License: | |
8 | |
9 Copyright (c) 2007-2015 Daniel Adler <dadler@uni-goettingen.de>, | |
10 Tassilo Philipp <tphilipp@potion-studios.com> | |
11 | |
12 Permission to use, copy, modify, and distribute this software for any | |
13 purpose with or without fee is hereby granted, provided that the above | |
14 copyright notice and this permission notice appear in all copies. | |
15 | |
16 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
17 WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
18 MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | |
19 ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
20 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | |
21 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | |
22 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
23 | |
24 */ | |
25 | |
26 | |
27 | |
28 #ifndef DYNCALL_CALL_ARM32_ARM_ARMHF_H | |
29 #define DYNCALL_CALL_ARM32_ARM_ARMHF_H | |
30 | |
31 | |
32 #include "dyncall_types.h" | |
33 | |
34 #ifdef __cplusplus | |
35 extern "C" { | |
36 #endif | |
37 | |
27
523c45dfa8fb
- refactored arm calling conventions' callvm code, so that the code that keeps
cslag
parents:
0
diff
changeset
|
38 /* |
523c45dfa8fb
- refactored arm calling conventions' callvm code, so that the code that keeps
cslag
parents:
0
diff
changeset
|
39 ** arm32 armhf mode calling convention calls |
523c45dfa8fb
- refactored arm calling conventions' callvm code, so that the code that keeps
cslag
parents:
0
diff
changeset
|
40 ** |
523c45dfa8fb
- refactored arm calling conventions' callvm code, so that the code that keeps
cslag
parents:
0
diff
changeset
|
41 ** - hybrid return-type call (bool ... pointer) |
523c45dfa8fb
- refactored arm calling conventions' callvm code, so that the code that keeps
cslag
parents:
0
diff
changeset
|
42 ** |
523c45dfa8fb
- refactored arm calling conventions' callvm code, so that the code that keeps
cslag
parents:
0
diff
changeset
|
43 ** Note the return type of this declaration is intentially of double-word size. |
523c45dfa8fb
- refactored arm calling conventions' callvm code, so that the code that keeps
cslag
parents:
0
diff
changeset
|
44 ** On some platforms the compiler generates cleanup code in the caller (dyncall_callvm_arm32_arm_armhf.c's |
523c45dfa8fb
- refactored arm calling conventions' callvm code, so that the code that keeps
cslag
parents:
0
diff
changeset
|
45 ** call()) that reuses,thus overwrites r0 and r1. |
523c45dfa8fb
- refactored arm calling conventions' callvm code, so that the code that keeps
cslag
parents:
0
diff
changeset
|
46 ** With this "hint", we preserve those registers by letting the compiler assume both |
523c45dfa8fb
- refactored arm calling conventions' callvm code, so that the code that keeps
cslag
parents:
0
diff
changeset
|
47 ** registers are used for the return type. |
523c45dfa8fb
- refactored arm calling conventions' callvm code, so that the code that keeps
cslag
parents:
0
diff
changeset
|
48 */ |
523c45dfa8fb
- refactored arm calling conventions' callvm code, so that the code that keeps
cslag
parents:
0
diff
changeset
|
49 |
523c45dfa8fb
- refactored arm calling conventions' callvm code, so that the code that keeps
cslag
parents:
0
diff
changeset
|
50 DClonglong dcCall_arm32_armhf(DCpointer target, DCpointer stackdata, DCsize size, DCfloat* p_s16); |
0 | 51 |
52 #ifdef __cplusplus | |
53 } | |
54 #endif | |
55 | |
56 | |
57 #endif /* DYNCALL_CALL_ARM32_ARM_H */ |