diff options
author | notaz | 2011-02-04 01:23:18 +0200 |
---|---|---|
committer | notaz | 2011-02-04 15:11:59 +0200 |
commit | a46e46276eb2b6162a101cdc72b6db2d039dba2b (patch) | |
tree | fc6237361ec5dbd434ad109484243169f8b31abf /plugins | |
parent | 907b1e90dff65f404907aeff405742030b62671e (diff) | |
download | pcsx_rearmed-a46e46276eb2b6162a101cdc72b6db2d039dba2b.tar.gz pcsx_rearmed-a46e46276eb2b6162a101cdc72b6db2d039dba2b.tar.bz2 pcsx_rearmed-a46e46276eb2b6162a101cdc72b6db2d039dba2b.zip |
dfxvideo: fix word access macros
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/dfxvideo/gpu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/dfxvideo/gpu.h b/plugins/dfxvideo/gpu.h index b7b171e..663b8b5 100644 --- a/plugins/dfxvideo/gpu.h +++ b/plugins/dfxvideo/gpu.h @@ -109,8 +109,8 @@ #define PUTLE16(X, Y) do{*((uint16_t *)X)=HOST2LE16((uint16_t)Y);}while(0) #define PUTLE32_(X, Y) do{*((uint32_t *)X)=HOST2LE16((uint32_t)Y);}while(0) #ifdef __arm__ -#define GETLE32(X) (*(uint16_t *)X|(((uint16_t *)X)[1]<<16)) -#define PUTLE32(X, Y) do{*((uint16_t *)X)=(uint32_t)Y;((uint16_t *)X)[1]=(uint32_t)(Y)>>16;}while(0) +#define GETLE32(X) (*(uint16_t *)(X)|(((uint16_t *)(X))[1]<<16)) +#define PUTLE32(X, Y) do{uint16_t *p_=(uint16_t *)(X);uint32_t y_=Y;p_[0]=y_;p_[1]=y_>>16;}while(0) #else #define GETLE32 GETLE32_ #define PUTLE32 PUTLE32_ |