Mercurial > pub > dyncall > dyncall
comparison dyncall/dyncall_call_mips_n32.h @ 131:21537652361e
- fixed mips64 n32 build (not sure if working, though)
- cosmetics, comments cleanups
author | cslag |
---|---|
date | Thu, 07 Jul 2016 14:51:30 +0200 |
parents | 3e629dc19168 |
children | f5577f6bf97a |
comparison
equal
deleted
inserted
replaced
130:01a2aee8d30b | 131:21537652361e |
---|---|
1 /* | 1 /* |
2 | 2 |
3 Package: dyncall | 3 Package: dyncall |
4 Library: dyncall | 4 Library: dyncall |
5 File: dyncall/dyncall_call_mips_n32.h | 5 File: dyncall/dyncall_call_mips_n32.h |
6 Description: mips "n32" ABI call-kernel C interface. | 6 Description: mips64 "n32" ABI call-kernel C interface. |
7 License: | 7 License: |
8 | 8 |
9 Copyright (c) 2007-2015 Daniel Adler <dadler@uni-goettingen.de>, | 9 Copyright (c) 2007-2016 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. |
50 interpreted in the call-kernel. | 50 interpreted in the call-kernel. |
51 */ | 51 */ |
52 | 52 |
53 struct DCRegData_mips_n32 | 53 struct DCRegData_mips_n32 |
54 { | 54 { |
55 DClonglong mIntData[8]; | 55 DClonglong mIntData[8]; |
56 union { DCfloat f; DCdouble d; } mFloatData[8]; | 56 union { DCfloat f; DCdouble d; } mFloatData[8]; |
57 DClonglong mUseDouble; /* bitmask: lower 8 bits specifies to use float or double from union array. */ | 57 DClonglong mUseDouble; /* bitmask: lower 8 bits specify to use float or double from union array. */ |
58 }; | 58 }; |
59 | 59 |
60 void dcCall_mips_n32(DCpointer target, struct DCRegData_mips_n32* regdata, DCsize stksize, DCpointer stkdata); | 60 void dcCall_mips_n32(DCpointer target, struct DCRegData_mips_n32* regdata, DCsize stksize, DCpointer stkdata); |
61 /* @@@ this is the same as n64, combine code */ | |
61 | 62 |
62 #ifdef __cplusplus | 63 #ifdef __cplusplus |
63 } | 64 } |
64 #endif | 65 #endif |
65 | 66 |