diff options
Diffstat (limited to 'src/devices/cpu/psx/mdec.cpp')
-rw-r--r-- | src/devices/cpu/psx/mdec.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/devices/cpu/psx/mdec.cpp b/src/devices/cpu/psx/mdec.cpp index 716102d1324..3c0148525d5 100644 --- a/src/devices/cpu/psx/mdec.cpp +++ b/src/devices/cpu/psx/mdec.cpp @@ -15,7 +15,7 @@ #define VERBOSE_LEVEL ( 0 ) -INLINE void ATTR_PRINTF(3,4) verboselog( device_t& device, int n_level, const char *s_fmt, ... ) +static inline void ATTR_PRINTF(3,4) verboselog( device_t& device, int n_level, const char *s_fmt, ... ) { if( VERBOSE_LEVEL >= n_level ) { @@ -31,7 +31,7 @@ INLINE void ATTR_PRINTF(3,4) verboselog( device_t& device, int n_level, const ch const device_type PSX_MDEC = &device_creator<psxmdec_device>; psxmdec_device::psxmdec_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, PSX_MDEC, "Sony PSX MDEC", tag, owner, clock, "psxmdec", __FILE__) + : device_t(mconfig, PSX_MDEC, "Sony PSX MDEC", tag, owner, clock, "psxmdec", __FILE__), n_decoded(0), n_offset(0), n_0_command(0), n_0_address(0), n_0_size(0), n_1_command(0), n_1_status(0) { } @@ -83,13 +83,13 @@ void psxmdec_device::device_start() } #ifdef UNUSED_FUNCTION -INLINE void psxwriteword( UINT32 *p_n_psxram, UINT32 n_address, UINT16 n_data ) +static inline void psxwriteword( UINT32 *p_n_psxram, UINT32 n_address, UINT16 n_data ) { *( (UINT16 *)( (UINT8 *)p_n_psxram + WORD_XOR_LE( n_address ) ) ) = n_data; } #endif -INLINE UINT16 psxreadword( UINT32 *p_n_psxram, UINT32 n_address ) +static inline UINT16 psxreadword( UINT32 *p_n_psxram, UINT32 n_address ) { return *( (UINT16 *)( (UINT8 *)p_n_psxram + WORD_XOR_LE( n_address ) ) ); } @@ -161,12 +161,12 @@ void psxmdec_device::mdec_idct( INT32 *p_n_src, INT32 *p_n_dst ) } } -INLINE UINT16 mdec_unpack_run( UINT16 n_packed ) +static inline UINT16 mdec_unpack_run( UINT16 n_packed ) { return n_packed >> 10; } -INLINE INT32 mdec_unpack_val( UINT16 n_packed ) +static inline INT32 mdec_unpack_val( UINT16 n_packed ) { return ( ( (INT32)n_packed ) << 22 ) >> 22; } @@ -224,22 +224,22 @@ UINT32 psxmdec_device::mdec_unpack( UINT32 *p_n_psxram, UINT32 n_address ) return n_address; } -INLINE INT32 mdec_cr_to_r( INT32 n_cr ) +static inline INT32 mdec_cr_to_r( INT32 n_cr ) { return ( 1435 * n_cr ) >> 10; } -INLINE INT32 mdec_cr_to_g( INT32 n_cr ) +static inline INT32 mdec_cr_to_g( INT32 n_cr ) { return ( -731 * n_cr ) >> 10; } -INLINE INT32 mdec_cb_to_g( INT32 n_cb ) +static inline INT32 mdec_cb_to_g( INT32 n_cb ) { return ( -351 * n_cb ) >> 10; } -INLINE INT32 mdec_cb_to_b( INT32 n_cb ) +static inline INT32 mdec_cb_to_b( INT32 n_cb ) { return ( 1814 * n_cb ) >> 10; } |