Mercurial > pub > dyncall > dyncall
comparison dyncallback/dyncall_args_sparc64.c @ 661:93ce63d72d59
- dyncallback code cleanup: removed unneeded headers
author | Tassilo Philipp |
---|---|
date | Thu, 14 Mar 2024 10:11:28 +0100 |
parents | 2562c89d5bb5 |
children |
comparison
equal
deleted
inserted
replaced
660:17dff20b9c10 | 661:93ce63d72d59 |
---|---|
4 Library: dyncallback | 4 Library: dyncallback |
5 File: dyncallback/dyncall_args_sparc64.c | 5 File: dyncallback/dyncall_args_sparc64.c |
6 Description: Callback's Arguments VM - Implementation for sparc64 - not yet | 6 Description: Callback's Arguments VM - Implementation for sparc64 - not yet |
7 License: | 7 License: |
8 | 8 |
9 Copyright (c) 2007-2022 Daniel Adler <dadler@uni-goettingen.de>, | 9 Copyright (c) 2007-2024 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. |
22 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 22 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
23 | 23 |
24 */ | 24 */ |
25 | 25 |
26 | 26 |
27 #include "dyncall_args_sparc64.h" | 27 #include "dyncall_args.h" |
28 | |
29 #define DCARGS_SPARC64_NUM_DOUBLE_REGS 16 | |
30 struct DCArgs | |
31 { | |
32 /* Don't change order or types, laid out for asm code to fill in! */ | |
33 DClonglong *arg_ptr; | |
34 DCdouble dreg_data[DCARGS_SPARC64_NUM_DOUBLE_REGS]; | |
35 DClonglong i; /* args fetched */ | |
36 }; | |
37 | |
28 | 38 |
29 DCulonglong dcbArgULongLong(DCArgs* p) { return p->arg_ptr[p->i++]; } | 39 DCulonglong dcbArgULongLong(DCArgs* p) { return p->arg_ptr[p->i++]; } |
30 DClonglong dcbArgLongLong (DCArgs* p) { return (DClonglong)dcbArgULongLong(p); } | 40 DClonglong dcbArgLongLong (DCArgs* p) { return (DClonglong)dcbArgULongLong(p); } |
31 DCulong dcbArgULong (DCArgs* p) { return (DCulong) dcbArgULongLong(p); } | 41 DCulong dcbArgULong (DCArgs* p) { return (DCulong) dcbArgULongLong(p); } |
32 DClong dcbArgLong (DCArgs* p) { return (DClong) dcbArgULongLong(p); } | 42 DClong dcbArgLong (DCArgs* p) { return (DClong) dcbArgULongLong(p); } |