Mercurial > pub > dyncall > dyncall
comparison dyncall/dyncall_value.h @ 7:7ca57dbefed4
- ppc64 update from Masanori
author | cslag |
---|---|
date | Sun, 19 Jul 2015 13:05:34 +0200 |
parents | 3e629dc19168 |
children | 6bd0974d257b |
comparison
equal
deleted
inserted
replaced
6:b8ea1d2a34a3 | 7:7ca57dbefed4 |
---|---|
46 | 46 |
47 typedef union DCValue_ DCValue; | 47 typedef union DCValue_ DCValue; |
48 | 48 |
49 union DCValue_ | 49 union DCValue_ |
50 { | 50 { |
51 #if defined (DC__Arch_PPC32) && defined(DC__Endian_BIG) | |
51 DCbool B; | 52 DCbool B; |
52 #if defined (DC__Arch_PPC32) && defined(DC__Endian_BIG) | |
53 struct { DCchar c_pad[3]; DCchar c; }; | 53 struct { DCchar c_pad[3]; DCchar c; }; |
54 struct { DCuchar C_pad[3]; DCuchar C; }; | 54 struct { DCuchar C_pad[3]; DCuchar C; }; |
55 struct { DCshort s_pad; DCshort s; }; | 55 struct { DCshort s_pad; DCshort s; }; |
56 struct { DCshort S_pad; DCshort S; }; | 56 struct { DCshort S_pad; DCshort S; }; |
57 DCint i; | |
58 DCuint I; | |
59 #elif defined (DC__Arch_PPC64) && defined(DC__Endian_BIG) | |
60 struct { DCbool B_pad; DCbool B; }; | |
61 struct { DCchar c_pad[7]; DCchar c; }; | |
62 struct { DCuchar C_pad[7]; DCuchar C; }; | |
63 struct { DCshort s_pad[3]; DCshort s; }; | |
64 struct { DCshort S_pad[3]; DCshort S; }; | |
65 struct { DCint i_pad; DCint i; }; | |
66 struct { DCint I_pad; DCuint I; }; | |
57 #else | 67 #else |
68 DCbool B; | |
58 DCchar c; | 69 DCchar c; |
59 DCuchar C; | 70 DCuchar C; |
60 DCshort s; | 71 DCshort s; |
61 DCushort S; | 72 DCushort S; |
62 #endif | |
63 DCint i; | 73 DCint i; |
64 DCuint I; | 74 DCuint I; |
75 #endif | |
65 DClong j; | 76 DClong j; |
66 DCulong J; | 77 DCulong J; |
67 DClonglong l; | 78 DClonglong l; |
68 DCulonglong L; | 79 DCulonglong L; |
69 DCfloat f; | 80 DCfloat f; |