mirror of
https://github.com/mpv-player/mpv
synced 2025-01-02 13:02:24 +00:00
INREG now static inline instead of a define, to avoid unnecessary GETREG
calls while byteswapping. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7997 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
0fe5b1bda4
commit
5c87e3bbcc
@ -130,7 +130,11 @@ static uint32_t SAVED_OVERLAY_GRAPHICS_KEY_CLR;
|
||||
|
||||
#define INREG8(addr) GETREG(uint8_t,(uint32_t)mach64_mmio_base,((addr)^0x100)<<2)
|
||||
#define OUTREG8(addr,val) SETREG(uint8_t,(uint32_t)mach64_mmio_base,((addr)^0x100)<<2,val)
|
||||
#define INREG(addr) le2me_32(GETREG(uint32_t,(uint32_t)mach64_mmio_base,((addr)^0x100)<<2))
|
||||
|
||||
static inline uint32_t INREG (uint32_t addr) {
|
||||
uint32_t tmp = GETREG(uint32_t,(uint32_t)mach64_mmio_base,((addr)^0x100)<<2);
|
||||
return le2me_32(tmp);
|
||||
}
|
||||
#define OUTREG(addr,val) SETREG(uint32_t,(uint32_t)mach64_mmio_base,((addr)^0x100)<<2,le2me_32(val))
|
||||
|
||||
#define OUTREGP(addr,val,mask) \
|
||||
|
Loading…
Reference in New Issue
Block a user