Merge pull request #30 from cxd4/master
fixed 17 compiler warnings about RSP "nameless struct/union" cases
This commit is contained in:
commit
abca1bd56f
|
@ -29,21 +29,19 @@
|
|||
|
||||
#include "Types.h"
|
||||
|
||||
typedef struct tagOPCODE {
|
||||
union {
|
||||
|
||||
typedef union tagOPCODE {
|
||||
unsigned long Hex;
|
||||
unsigned char Ascii[4];
|
||||
|
||||
struct {
|
||||
unsigned offset : 16;
|
||||
unsigned immediate : 16;
|
||||
unsigned rt : 5;
|
||||
unsigned rs : 5;
|
||||
unsigned op : 6;
|
||||
};
|
||||
|
||||
struct {
|
||||
unsigned immediate : 16;
|
||||
unsigned offset : 16;
|
||||
unsigned : 5;
|
||||
unsigned base : 5;
|
||||
unsigned : 6;
|
||||
|
@ -71,8 +69,6 @@ typedef struct tagOPCODE {
|
|||
unsigned : 5;
|
||||
unsigned : 6;
|
||||
};
|
||||
|
||||
};
|
||||
} OPCODE;
|
||||
|
||||
//RSP OpCodes
|
||||
|
|
|
@ -246,8 +246,7 @@ void SseMoveUnalignedRegToN64Mem ( int sseReg, int AddrReg );
|
|||
void SseMoveRegToReg ( int Dest, int Source );
|
||||
void SseXorRegToReg ( int Dest, int Source );
|
||||
|
||||
typedef struct {
|
||||
union {
|
||||
typedef union {
|
||||
struct {
|
||||
unsigned Reg0 : 2;
|
||||
unsigned Reg1 : 2;
|
||||
|
@ -255,7 +254,6 @@ typedef struct {
|
|||
unsigned Reg3 : 2;
|
||||
};
|
||||
unsigned UB:8;
|
||||
};
|
||||
} SHUFFLE;
|
||||
|
||||
void SseShuffleReg ( int Dest, int Source, BYTE Immed );
|
||||
|
|
Loading…
Reference in New Issue