comparison dyncall/dyncall_callvm_arm32_arm_armhf.c @ 366:ad5f9803f52f

- removal of some unnecessary headers that only contained internally used forward declarations, so no need to have them
author Tassilo Philipp
date Wed, 15 Apr 2020 14:57:23 +0200
parents f5577f6bf97a
children ddfb9577a00e
comparison
equal deleted inserted replaced
365:1d03a3a4220d 366:ad5f9803f52f
4 Library: dyncall 4 Library: dyncall
5 File: dyncall/dyncall_callvm_arm32_arm_armhf.c 5 File: dyncall/dyncall_callvm_arm32_arm_armhf.c
6 Description: ARM 'armhf' ABI implementation 6 Description: ARM 'armhf' ABI implementation
7 License: 7 License:
8 8
9 Copyright (c) 2007-2018 Daniel Adler <dadler@uni-goettingen.de>, 9 Copyright (c) 2007-2020 Daniel Adler <dadler@uni-goettingen.de>,
10 Tassilo Philipp <tphilipp@potion-studios.com> 10 Tassilo Philipp <tphilipp@potion-studios.com>
11 11
12 Permission to use, copy, modify, and distribute this software for any 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 13 purpose with or without fee is hereby granted, provided that the above
14 copyright notice and this permission notice appear in all copies. 14 copyright notice and this permission notice appear in all copies.
24 */ 24 */
25 25
26 26
27 #include "dyncall_callvm_arm32_arm_armhf.h" 27 #include "dyncall_callvm_arm32_arm_armhf.h"
28 #include "dyncall_alloc.h" 28 #include "dyncall_alloc.h"
29
30
31 /*
32 ** arm32 armhf mode calling convention calls
33 **
34 ** - hybrid return-type call (bool ... pointer)
35 **
36 ** Note the return type of this declaration is intentially of double-word size (despite
37 ** the return value not being used in the code below).
38 ** On some platforms the compiler generates cleanup code in the caller
39 ** (dyncall_callvm_arm32_arm_armhf.c's call()) that reuses- thus overwrites - r0 and r1.
40 ** With this "hint", we preserve those registers by letting the compiler assume both
41 ** registers are used for the return type.
42 */
43 DClonglong dcCall_arm32_armhf(DCpointer target, DCpointer stackdata, DCsize size, DCfloat* p_s16);
29 44
30 45
31 static void deinit(DCCallVM* in_self) 46 static void deinit(DCCallVM* in_self)
32 { 47 {
33 dcFreeMem(in_self); 48 dcFreeMem(in_self);