mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 19:45:20 +00:00
explicit casting
This commit is contained in:
parent
7169972434
commit
9d3d7b09b3
1 changed files with 7 additions and 7 deletions
|
@ -118,14 +118,14 @@ public:
|
|||
#define g_imm_xmm(x) oword_ptr(*g_imm_var, offsetof(g_imm_table_struct, x))
|
||||
#define g_imm2_xmm(x, y) oword_ptr(*g_imm_var, y, 0, offsetof(g_imm_table_struct, x))
|
||||
#else
|
||||
#define cpu_xmm(x) oword_ptr(*cpu_var, (int)&(((SPUThread*)0)->x) )
|
||||
#define cpu_qword(x) qword_ptr(*cpu_var, (int)&(((SPUThread*)0)->x) )
|
||||
#define cpu_dword(x) dword_ptr(*cpu_var, (int)&(((SPUThread*)0)->x) )
|
||||
#define cpu_word(x) word_ptr(*cpu_var, (int)&(((SPUThread*)0)->x) )
|
||||
#define cpu_byte(x) byte_ptr(*cpu_var, (int)&(((SPUThread*)0)->x) )
|
||||
#define cpu_xmm(x) oword_ptr(*cpu_var, reinterpret_cast<int>(&(((SPUThread*)0)->x)) )
|
||||
#define cpu_qword(x) qword_ptr(*cpu_var, reinterpret_cast<int>(&(((SPUThread*)0)->x)) )
|
||||
#define cpu_dword(x) dword_ptr(*cpu_var, reinterpret_cast<int>(&(((SPUThread*)0)->x)) )
|
||||
#define cpu_word(x) word_ptr(*cpu_var, reinterpret_cast<int>(&(((SPUThread*)0)->x)) )
|
||||
#define cpu_byte(x) byte_ptr(*cpu_var, reinterpret_cast<int>(&(((SPUThread*)0)->x)) )
|
||||
|
||||
#define g_imm_xmm(x) oword_ptr(*g_imm_var, (int)&(((g_imm_table_struct*)0)->x))
|
||||
#define g_imm2_xmm(x, y) oword_ptr(*g_imm_var, y, 0, (int)&(((g_imm_table_struct*)0)->x))
|
||||
#define g_imm_xmm(x) oword_ptr(*g_imm_var, reinterpret_cast<int>(&(((g_imm_table_struct*)0)->x)))
|
||||
#define g_imm2_xmm(x, y) oword_ptr(*g_imm_var, y, 0, reinterpret_cast<int>(&(((g_imm_table_struct*)0)->x)))
|
||||
#endif
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue