diff options
-rw-r--r-- | src/emu/cpu/arm7/arm7core.h | 5 | ||||
-rw-r--r-- | src/emu/cpu/dsp32/dsp32.c | 8 | ||||
-rw-r--r-- | src/emu/cpu/i86/i86time.c | 8 | ||||
-rw-r--r-- | src/emu/cpu/powerpc/ppc.c | 2 | ||||
-rw-r--r-- | src/emu/cpu/spc700/spc700.c | 6 | ||||
-rw-r--r-- | src/emu/cpu/tms32025/tms32025.c | 2 | ||||
-rw-r--r-- | src/emu/cpu/tms32031/tms32031.c | 3 | ||||
-rw-r--r-- | src/emu/cpu/z8000/z8000.c | 4 | ||||
-rw-r--r-- | src/emu/drawgfx.c | 5 | ||||
-rw-r--r-- | src/emu/inptport.c | 2 | ||||
-rw-r--r-- | src/emu/rendersw.c | 2 | ||||
-rw-r--r-- | src/lib/util/png.c | 6 | ||||
-rw-r--r-- | src/mame/drivers/goal92.c | 2 | ||||
-rw-r--r-- | src/mame/drivers/namcoic.c | 2 | ||||
-rw-r--r-- | src/mame/machine/midwayic.c | 3 | ||||
-rw-r--r-- | src/mame/machine/psx.c | 2 | ||||
-rw-r--r-- | src/mame/video/atarirle.c | 6 | ||||
-rw-r--r-- | src/mame/video/hyprduel.c | 6 | ||||
-rw-r--r-- | src/mame/video/midzeus.c | 3 | ||||
-rw-r--r-- | src/mame/video/midzeus2.c | 11 | ||||
-rw-r--r-- | src/mame/video/model3.c | 4 | ||||
-rw-r--r-- | src/mame/video/namcofl.c | 4 | ||||
-rw-r--r-- | src/mame/video/system1.c | 2 | ||||
-rw-r--r-- | src/tools/chdman.c | 3 |
24 files changed, 82 insertions, 19 deletions
diff --git a/src/emu/cpu/arm7/arm7core.h b/src/emu/cpu/arm7/arm7core.h index a884248aa4b..5e2575a4b79 100644 --- a/src/emu/cpu/arm7/arm7core.h +++ b/src/emu/cpu/arm7/arm7core.h @@ -116,6 +116,7 @@ enum kNumRegisters }; +#ifdef UNUSED_FUNCTION static const int thumbCycles[256] = { // 0 1 2 3 4 5 6 7 8 9 a b c d e f @@ -136,10 +137,13 @@ static const int thumbCycles[256] = 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // e 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 // f }; +#endif /* 17 processor registers are visible at any given time, * banked depending on processor mode. */ + +#ifdef UNUSED_FUNCTION static const int sRegisterTable[ARM7_NUM_MODES][18] = { { /* USR */ @@ -188,6 +192,7 @@ static const int sRegisterTable[ARM7_NUM_MODES][18] = eR15, eCPSR // No SPSR in this mode } }; +#endif #define N_BIT 31 #define Z_BIT 30 diff --git a/src/emu/cpu/dsp32/dsp32.c b/src/emu/cpu/dsp32/dsp32.c index 6270355dc4c..77a25637fc5 100644 --- a/src/emu/cpu/dsp32/dsp32.c +++ b/src/emu/cpu/dsp32/dsp32.c @@ -260,15 +260,17 @@ INLINE void WLONG(offs_t addr, UINT32 data) EXECEPTION HANDLING ***************************************************************************/ +#ifdef UNUSED_FUNCTION INLINE void generate_exception(int exception) { } +#endif - +#ifdef UNUSED_FUNCTION INLINE void invalid_instruction(UINT32 op) { } - +#endif /*************************************************************************** @@ -450,6 +452,7 @@ static offs_t dsp32c_dasm(char *buffer, offs_t pc, const UINT8 *oprom, const UIN ***************************************************************************/ /* context finder */ +#ifdef UNUSED_FUNCTION INLINE dsp32_regs *FINDCONTEXT(int cpu) { dsp32_regs *context = cpunum_get_context_ptr(cpu); @@ -457,6 +460,7 @@ INLINE dsp32_regs *FINDCONTEXT(int cpu) context = &dsp32; return context; } +#endif static const UINT32 regmap[4][16] = { diff --git a/src/emu/cpu/i86/i86time.c b/src/emu/cpu/i86/i86time.c index c9c1c808763..5d7c9da9e5b 100644 --- a/src/emu/cpu/i86/i86time.c +++ b/src/emu/cpu/i86/i86time.c @@ -84,6 +84,7 @@ struct i80x86_timing /* these come from the 8088 timings in OPCODE.LST, but with the penalty for 16-bit memory accesses removed wherever possible */ +#ifdef UNUSED_FUNCTION static const struct i80x86_timing i8086_cycles = { 8086, @@ -149,9 +150,10 @@ static const struct i80x86_timing i8086_cycles = (void *)-1 /* marker to make sure we line up */ }; - +#endif /* these come from the Intel 80186 datasheet */ +#ifdef UNUSED_FUNCTION static const struct i80x86_timing i80186_cycles = { 80186, @@ -229,10 +231,11 @@ static const struct i80x86_timing i80186_cycles = (void *)-1 /* marker to make sure we line up */ }; - +#endif /* these come from the 80286 timings in OPCODE.LST */ /* many of these numbers are suspect */ +#ifdef UNUSED_FUNCTION static const struct i80x86_timing i80286_cycles = { 80286, @@ -310,3 +313,4 @@ static const struct i80x86_timing i80286_cycles = (void *)-1 /* marker to make sure we line up */ }; +#endif
\ No newline at end of file diff --git a/src/emu/cpu/powerpc/ppc.c b/src/emu/cpu/powerpc/ppc.c index 8c5df36b02f..ddc704661fd 100644 --- a/src/emu/cpu/powerpc/ppc.c +++ b/src/emu/cpu/powerpc/ppc.c @@ -817,10 +817,12 @@ INLINE UINT32 ppc_get_cr(void) return CR(0) << 28 | CR(1) << 24 | CR(2) << 20 | CR(3) << 16 | CR(4) << 12 | CR(5) << 8 | CR(6) << 4 | CR(7); } +#ifdef UNUSED_FUNCTION INLINE void ppc_exception(int exception_type) { longjmp(ppc.exception_jmpbuf, exception_type); } +#endif /***********************************************************************/ diff --git a/src/emu/cpu/spc700/spc700.c b/src/emu/cpu/spc700/spc700.c index a3e2d061bf1..d3f7d482db6 100644 --- a/src/emu/cpu/spc700/spc700.c +++ b/src/emu/cpu/spc700/spc700.c @@ -278,11 +278,13 @@ INLINE uint read_8_immediate(uint address) return spc700_read_8_immediate(address); } +#ifdef UNUSED_FUNCTION INLINE uint read_8_instruction(uint address) { address = MAKE_UINT_16(address); return spc700_read_instruction(address); } +#endif INLINE uint read_8_direct(uint address) { @@ -432,7 +434,9 @@ INLINE uint EA_AXI(void) {return OPER_16_ABX();} INLINE uint EA_DP(void) {return OPER_8_IMM();} INLINE uint EA_DPX(void) {return (EA_DP() + REG_X)&0xff;} INLINE uint EA_DPY(void) {return (EA_DP() + REG_Y)&0xff;} +#ifdef UNUSED_FUNCTION INLINE uint EA_DPI(void) {return OPER_16_DP();} +#endif INLINE uint EA_DXI(void) {return OPER_16_DPX();} INLINE uint EA_DIY(void) {uint addr = OPER_16_DP(); if((addr&0xff00) != ((addr+REG_Y)&0xff00)) CLK(1); return addr + REG_Y;} INLINE uint EA_XI(void) {return REG_X;} @@ -535,6 +539,7 @@ INLINE uint PULL_16(void) return value | (PULL_8()<<8); } +#ifdef UNUSED_FUNCTION INLINE void SERVICE_IRQ(void) { CLK(7); @@ -545,6 +550,7 @@ INLINE void SERVICE_IRQ(void) INT_ACK(0); JUMP(read_16_VEC(VECTOR_IRQ)); } +#endif #if !SPC700_OPTIMIZE_SNES INLINE void CHECK_IRQ(void) diff --git a/src/emu/cpu/tms32025/tms32025.c b/src/emu/cpu/tms32025/tms32025.c index 6f98d691479..1c1ac6b9125 100644 --- a/src/emu/cpu/tms32025/tms32025.c +++ b/src/emu/cpu/tms32025/tms32025.c @@ -294,7 +294,9 @@ INLINE void MODIFY_DP (int data) { R.STR0 &= ~DP_REG; R.STR0 |= (data & DP_REG) INLINE void MODIFY_PM (int data) { R.STR1 &= ~PM_REG; R.STR1 |= (data & PM_REG); R.STR1 |= 0x0180; } INLINE void MODIFY_ARP(int data) { R.STR1 &= ~ARB_REG; R.STR1 |= (R.STR0 & ARP_REG); R.STR1 |= 0x0180; \ R.STR0 &= ~ARP_REG; R.STR0 |= ((data << 13) & ARP_REG); R.STR0 |= 0x0400; } +#ifdef UNUSED_FUNCTION INLINE void MODIFY_ARB(int data) { R.STR1 &= ~ARB_REG; R.STR1 |= ((data << 13) & ARB_REG); R.STR1 |= 0x0180; } +#endif static int mHackIgnoreARP; /* special handling for lst, lst1 instructions */ diff --git a/src/emu/cpu/tms32031/tms32031.c b/src/emu/cpu/tms32031/tms32031.c index 29798e03cfb..8b597ccce52 100644 --- a/src/emu/cpu/tms32031/tms32031.c +++ b/src/emu/cpu/tms32031/tms32031.c @@ -297,14 +297,15 @@ UINT32 convert_double_to_tms3203x_fp(double dval) EXECEPTION HANDLING ***************************************************************************/ +#ifdef UNUSED_FUNCTION INLINE void generate_exception(int exception) { } - INLINE void invalid_instruction(UINT32 op) { } +#endif diff --git a/src/emu/cpu/z8000/z8000.c b/src/emu/cpu/z8000/z8000.c index 1f523da95e4..e25fa8154a6 100644 --- a/src/emu/cpu/z8000/z8000.c +++ b/src/emu/cpu/z8000/z8000.c @@ -256,6 +256,7 @@ INLINE UINT16 RDPORT_W(int mode, UINT16 addr) } } +#ifdef UNUSED_FUNCTION INLINE UINT32 RDPORT_L(int mode, UINT16 addr) { if( mode == 0 ) @@ -271,6 +272,7 @@ INLINE UINT32 RDPORT_L(int mode, UINT16 addr) return 0x00000000; } } +#endif INLINE void WRPORT_B(int mode, UINT16 addr, UINT8 value) { @@ -297,6 +299,7 @@ INLINE void WRPORT_W(int mode, UINT16 addr, UINT16 value) } } +#ifdef UNUSED_FUNCTION INLINE void WRPORT_L(int mode, UINT16 addr, UINT32 value) { if( mode == 0 ) @@ -311,6 +314,7 @@ INLINE void WRPORT_L(int mode, UINT16 addr, UINT32 value) /* how to handle MMU writes? */ } } +#endif #include "z8000ops.c" #include "z8000tbl.c" diff --git a/src/emu/drawgfx.c b/src/emu/drawgfx.c index d5e7052b8fd..f3fe433da79 100644 --- a/src/emu/drawgfx.c +++ b/src/emu/drawgfx.c @@ -358,6 +358,7 @@ void freegfx(gfx_element *gfx) BLOCKMOVE PRIMITIVES ***************************************************************************/ +#ifdef UNUSED_FUNCTION INLINE void blockmove_NtoN_transpen_noremap8( const UINT8 *srcdata,int srcwidth,int srcheight,int srcmodulo, UINT8 *dstdata,int dstmodulo, @@ -423,7 +424,9 @@ INLINE void blockmove_NtoN_transpen_noremap8( srcheight--; } } +#endif +#ifdef UNUSED_FUNCTION INLINE void blockmove_NtoN_transpen_noremap_flipx8( const UINT8 *srcdata,int srcwidth,int srcheight,int srcmodulo, UINT8 *dstdata,int dstmodulo, @@ -484,7 +487,7 @@ INLINE void blockmove_NtoN_transpen_noremap_flipx8( srcheight--; } } - +#endif INLINE void blockmove_NtoN_transpen_noremap16( const UINT16 *srcdata,int srcwidth,int srcheight,int srcmodulo, diff --git a/src/emu/inptport.c b/src/emu/inptport.c index 6077c128e48..93a4d4cb95f 100644 --- a/src/emu/inptport.c +++ b/src/emu/inptport.c @@ -1529,6 +1529,7 @@ static int save_this_port_type(int type) * *************************************/ +#ifdef UNUSED_FUNCTION INLINE input_code get_default_code(int config_type, int type) { switch (type) @@ -1545,6 +1546,7 @@ INLINE input_code get_default_code(int config_type, int type) } return SEQCODE_END; } +#endif INLINE int string_to_seq_index(const char *string) diff --git a/src/emu/rendersw.c b/src/emu/rendersw.c index 0abf76defe0..f435022beb3 100644 --- a/src/emu/rendersw.c +++ b/src/emu/rendersw.c @@ -1881,7 +1881,7 @@ static void FUNC_PREFIX(setup_and_draw_textured_quad)(const render_primitive *pr using a software rasterizer -------------------------------------------------*/ -void FUNC_PREFIX(draw_primitives)(const render_primitive *primlist, void *dstdata, UINT32 width, UINT32 height, UINT32 pitch) +static void FUNC_PREFIX(draw_primitives)(const render_primitive *primlist, void *dstdata, UINT32 width, UINT32 height, UINT32 pitch) { const render_primitive *prim; diff --git a/src/lib/util/png.c b/src/lib/util/png.c index 441e1f4750a..b97a0fff3b0 100644 --- a/src/lib/util/png.c +++ b/src/lib/util/png.c @@ -58,11 +58,12 @@ INLINE UINT8 fetch_8bit(UINT8 *v) } +#ifdef UNUSED_FUNCTON INLINE UINT16 fetch_16bit(UINT8 *v) { return BIG_ENDIANIZE_INT16(*(UINT16 *)v); } - +#endif INLINE UINT32 fetch_32bit(UINT8 *v) { @@ -76,11 +77,12 @@ INLINE void put_8bit(UINT8 *v, UINT8 data) } +#ifdef UNUSED_FUNCTON INLINE void put_16bit(UINT8 *v, UINT16 data) { *(UINT16 *)v = BIG_ENDIANIZE_INT16(data); } - +#endif INLINE void put_32bit(UINT8 *v, UINT32 data) { diff --git a/src/mame/drivers/goal92.c b/src/mame/drivers/goal92.c index 46301a64ae1..dc71b448ba3 100644 --- a/src/mame/drivers/goal92.c +++ b/src/mame/drivers/goal92.c @@ -287,6 +287,7 @@ static const gfx_layout layout_16x16x4 = 16*16 }; +#ifdef UNUSED_FUNCTON static const gfx_layout layout_16x16x4_2 = { 16,16, @@ -299,6 +300,7 @@ static const gfx_layout layout_16x16x4_2 = 256+0*32,256+1*32,256+2*32,256+3*32,256+4*32,256+5*32,256+6*32,256+7*32 }, 1024 }; +#endif static GFXDECODE_START( goal92 ) GFXDECODE_ENTRY( REGION_GFX1, 0, layout_16x16x4, 0*16, 8*16 ) // Sprites diff --git a/src/mame/drivers/namcoic.c b/src/mame/drivers/namcoic.c index 9ec3695d20b..b6150624d3d 100644 --- a/src/mame/drivers/namcoic.c +++ b/src/mame/drivers/namcoic.c @@ -691,6 +691,7 @@ nth_word32( const UINT32 *pSource, int which ) /* nth_byte32 is a general-purpose utility function, which allows us to * read from 32-bit aligned memory as if it were an array of bytes. */ +#ifdef UNUSED_FUNCTON INLINE UINT8 nth_byte32( const UINT32 *pSource, int which ) { @@ -703,6 +704,7 @@ nth_byte32( const UINT32 *pSource, int which ) default: return data&0xff; } } /* nth_byte32 */ +#endif /**************************************************************************************************************/ diff --git a/src/mame/machine/midwayic.c b/src/mame/machine/midwayic.c index 64d4451b36a..b1d66e923c1 100644 --- a/src/mame/machine/midwayic.c +++ b/src/mame/machine/midwayic.c @@ -250,11 +250,12 @@ INLINE UINT8 make_bcd(UINT8 data) } +#ifdef UNUSED_FUNCTON INLINE UINT8 unmake_bcd(UINT8 data) { return ((data & 0xf0) >> 4) * 10 + (data & 0x0f); } - +#endif static TIMER_CALLBACK( reset_timer ) { diff --git a/src/mame/machine/psx.c b/src/mame/machine/psx.c index 515b7148ea4..24aea23ff9c 100644 --- a/src/mame/machine/psx.c +++ b/src/mame/machine/psx.c @@ -36,10 +36,12 @@ INLINE void ATTR_PRINTF(2,3) verboselog( int n_level, const char *s_fmt, ... ) UINT32 *g_p_n_psxram; size_t g_n_psxramsize; +#ifdef UNUSED_FUNCTON INLINE void psxwriteword( UINT32 n_address, UINT16 n_data ) { *( (UINT16 *)( (UINT8 *)g_p_n_psxram + WORD_XOR_LE( n_address ) ) ) = n_data; } +#endif INLINE UINT16 psxreadword( UINT32 n_address ) { diff --git a/src/mame/video/atarirle.c b/src/mame/video/atarirle.c index 678fbe23700..88f53a724fe 100644 --- a/src/mame/video/atarirle.c +++ b/src/mame/video/atarirle.c @@ -162,6 +162,7 @@ static void draw_rle_zoom_hflip(bitmap_t *bitmap, const atarirle_info *gfx, two. ---------------------------------------------------------------*/ +#ifdef UNUSED_FUNCTON INLINE int compute_log(int value) { int log = 0; @@ -174,7 +175,7 @@ INLINE int compute_log(int value) return -1; return log; } - +#endif /*--------------------------------------------------------------- round_to_powerof2: Rounds a number up to the nearest @@ -200,6 +201,7 @@ INLINE int round_to_powerof2(int value) value into the result, packing the bits along the way. ---------------------------------------------------------------*/ +#ifdef UNUSED_FUNCTON INLINE int collapse_bits(int value, int mask) { int testmask, ormask; @@ -214,7 +216,7 @@ INLINE int collapse_bits(int value, int mask) } return result; } - +#endif /*--------------------------------------------------------------- convert_mask: Converts a 4-word mask into a word index, diff --git a/src/mame/video/hyprduel.c b/src/mame/video/hyprduel.c index 077840ac0b1..3bd9f9f05ee 100644 --- a/src/mame/video/hyprduel.c +++ b/src/mame/video/hyprduel.c @@ -127,6 +127,7 @@ static UINT8 *empty_tiles; /* 8x8x4 tiles only */ +#ifdef UNUSED_FUNCTON INLINE void get_tile_info(running_machine *machine,tile_data *tileinfo,int tile_index,int layer,UINT16 *vram) { UINT16 code; @@ -159,7 +160,7 @@ INLINE void get_tile_info(running_machine *machine,tile_data *tileinfo,int tile_ (((tile & 0x0ff00000) >> 20) ^ 0x0f) + 0x100, TILE_FLIPXY((code & 0x6000) >> 13)); } - +#endif /* 8x8x4 or 8x8x8 tiles. It's the tile's color that decides: if its low 4 bits are high ($f,$1f,$2f etc) the tile is 8bpp, otherwise it's 4bpp */ @@ -204,6 +205,7 @@ INLINE void get_tile_info_8bit(running_machine *machine,tile_data *tileinfo,int /* 16x16x4 or 16x16x8 tiles. It's the tile's color that decides: if its low 4 bits are high ($f,$1f,$2f etc) the tile is 8bpp, otherwise it's 4bpp */ +#ifdef UNUSED_FUNCTON INLINE void get_tile_info_16x16_8bit(running_machine *machine,tile_data *tileinfo,int tile_index,int layer,UINT16 *vram) { UINT16 code; @@ -242,7 +244,7 @@ INLINE void get_tile_info_16x16_8bit(running_machine *machine,tile_data *tileinf (((tile & 0x0ff00000) >> 20) ^ 0x0f) + 0x100, TILE_FLIPXY((code & 0x6000) >> 13)); } - +#endif INLINE void hyprduel_vram_w(offs_t offset,UINT16 data,UINT16 mem_mask,int layer,UINT16 *vram) { diff --git a/src/mame/video/midzeus.c b/src/mame/video/midzeus.c index 379b8694204..775f9df42e3 100644 --- a/src/mame/video/midzeus.c +++ b/src/mame/video/midzeus.c @@ -203,6 +203,7 @@ INLINE void waveram_plot_check_depth(int y, int x, UINT16 color, UINT16 depth) } } +#ifdef UNUSED_FUNCTON INLINE void waveram_plot_check_depth_nowrite(int y, int x, UINT16 color, UINT16 depth) { if (x >= 0 && x <= zeus_cliprect.max_x && y >= 0 && y < zeus_cliprect.max_y) @@ -212,7 +213,7 @@ INLINE void waveram_plot_check_depth_nowrite(int y, int x, UINT16 color, UINT16 WAVERAM_WRITEPIX(zeus_renderbase, y, x, color); } } - +#endif /************************************* diff --git a/src/mame/video/midzeus2.c b/src/mame/video/midzeus2.c index 8efed068d05..73296061ecc 100644 --- a/src/mame/video/midzeus2.c +++ b/src/mame/video/midzeus2.c @@ -169,12 +169,13 @@ INLINE void *waveram1_ptr_from_expanded_addr(UINT32 addr) return WAVERAM_BLOCK1(blocknum); } +#ifdef UNUSED_FUNCTON INLINE void *waveram0_ptr_from_texture_addr(UINT32 addr, int width) { UINT32 blocknum = ((addr & ~1) * width) / 8; return WAVERAM_BLOCK0(blocknum); } - +#endif /************************************* @@ -183,11 +184,13 @@ INLINE void *waveram0_ptr_from_texture_addr(UINT32 addr, int width) * *************************************/ +#ifdef UNUSED_FUNCTON INLINE void waveram_plot(int y, int x, UINT32 color) { if (x >= 0 && x <= zeus_cliprect.max_x && y >= 0 && y < zeus_cliprect.max_y) WAVERAM_WRITEPIX(zeus_renderbase, y, x, color); } +#endif INLINE void waveram_plot_depth(int y, int x, UINT32 color, UINT16 depth) { @@ -211,6 +214,7 @@ INLINE void waveram_plot_check_depth(int y, int x, UINT32 color, UINT16 depth) } } +#ifdef UNUSED_FUNCTON INLINE void waveram_plot_check_depth_nowrite(int y, int x, UINT32 color, UINT16 depth) { if (x >= 0 && x <= zeus_cliprect.max_x && y >= 0 && y < zeus_cliprect.max_y) @@ -220,7 +224,7 @@ INLINE void waveram_plot_check_depth_nowrite(int y, int x, UINT32 color, UINT16 WAVERAM_WRITEPIX(zeus_renderbase, y, x, color); } } - +#endif /************************************* @@ -236,12 +240,13 @@ INLINE UINT8 get_texel_8bit(const void *base, int y, int x, int width) } +#ifdef UNUSED_FUNCTON INLINE UINT8 get_texel_4bit(const void *base, int y, int x, int width) { UINT32 byteoffs = (y / 2) * (width * 2) + ((x / 8) << 3) + ((y & 1) << 2) + ((x / 2) & 3); return (WAVERAM_READ8(base, byteoffs) >> (4 * (x & 1))) & 0x0f; } - +#endif /************************************* diff --git a/src/mame/video/model3.c b/src/mame/video/model3.c index 0bee3a5820b..310686a0e01 100644 --- a/src/mame/video/model3.c +++ b/src/mame/video/model3.c @@ -707,6 +707,7 @@ INLINE void write_texture16(int xpos, int ypos, int width, int height, int page, } } +#ifdef UNUSED_FUNCTON INLINE void write_texture8(int xpos, int ypos, int width, int height, int page, UINT16 *data) { int x,y,i,j; @@ -729,6 +730,7 @@ INLINE void write_texture8(int xpos, int ypos, int width, int height, int page, } } } +#endif static void real3d_upload_texture(UINT32 header, UINT32 *data) { @@ -882,10 +884,12 @@ WRITE64_HANDLER( real3d_cmd_w ) /*****************************************************************************/ /* matrix and vector operations */ +#ifdef UNUSED_FUNCTON INLINE float dot_product(VECTOR a, VECTOR b) { return (a[0] * b[0]) + (a[1] * b[1]) + (a[2] * b[2]) + (a[3] * b[3]); } +#endif INLINE float dot_product3(VECTOR3 a, VECTOR3 b) { diff --git a/src/mame/video/namcofl.c b/src/mame/video/namcofl.c index 2bda14eebcf..ad3a96c9db9 100644 --- a/src/mame/video/namcofl.c +++ b/src/mame/video/namcofl.c @@ -14,6 +14,7 @@ static UINT32 namcofl_sprbank; /* nth_word32 is a general-purpose utility function, which allows us to * read from 32-bit aligned memory as if it were an array of 16 bit words. */ +#ifdef UNUSED_FUNCTON INLINE UINT16 nth_word32( const UINT32 *source, int which ) { @@ -28,10 +29,12 @@ nth_word32( const UINT32 *source, int which ) return (*source)>>16; } } +#endif /* nth_byte32 is a general-purpose utility function, which allows us to * read from 32-bit aligned memory as if it were an array of bytes. */ +#ifdef UNUSED_FUNCTON INLINE UINT8 nth_byte32( const UINT32 *pSource, int which ) { @@ -46,6 +49,7 @@ nth_byte32( const UINT32 *pSource, int which ) default: return data&0xff; } } /* nth_byte32 */ +#endif static void namcofl_install_palette(running_machine *machine) { diff --git a/src/mame/video/system1.c b/src/mame/video/system1.c index b4b4ef67140..530257a6531 100644 --- a/src/mame/video/system1.c +++ b/src/mame/video/system1.c @@ -179,10 +179,12 @@ void system1_define_background_memory(int mode) } +#ifdef UNUSED_FUNCTON INLINE int get_sprite_bottom_y(int spr_number) { return spriteram[0x10 * spr_number + SPR_Y_BOTTOM]; } +#endif INLINE void draw_pixel(bitmap_t *bitmap, int x,int y,int x_flipped,int y_flipped, diff --git a/src/tools/chdman.c b/src/tools/chdman.c index 2364cce0a9f..bad744b684f 100644 --- a/src/tools/chdman.c +++ b/src/tools/chdman.c @@ -98,6 +98,7 @@ static clock_t lastprogress = 0; put_bigendian_uint32 - write a UINT32 in big-endian order to memory -------------------------------------------------*/ +#ifdef UNUSED_FUNCTON INLINE void put_bigendian_uint32(UINT8 *base, UINT32 value) { base[0] = value >> 24; @@ -105,7 +106,7 @@ INLINE void put_bigendian_uint32(UINT8 *base, UINT32 value) base[2] = value >> 8; base[3] = value; } - +#endif /*------------------------------------------------- print_big_int - 64-bit int printing with commas |