mirror of
https://github.com/holub/mame
synced 2025-05-20 20:58:51 +03:00
More PPC GCC warning fixes.
This commit is contained in:
parent
c874aa7c85
commit
64c285cf17
@ -150,16 +150,16 @@ struct _generic_token
|
||||
/* extract a value from a fixed number of bits; if bits is negative, treat it as a signed value */
|
||||
#define UNSHIFT_AND_MASK32(src, val, bits, shift) do { \
|
||||
if ((bits) < 0) \
|
||||
(val) = token_sign_extend32((src) >> (shift), -(bits)); \
|
||||
(val) = token_sign_extend32((src) >> (shift), (UINT8)-(bits)); \
|
||||
else \
|
||||
(val) = token_zero_extend32((src) >> (shift), (bits)); \
|
||||
(val) = token_zero_extend32((src) >> (shift), (UINT8)(bits)); \
|
||||
} while (0)
|
||||
|
||||
#define UNSHIFT_AND_MASK64(src, val, bits, shift) do { \
|
||||
if ((bits) < 0) \
|
||||
(val) = token_sign_extend64((src) >> (shift), -(bits)); \
|
||||
(val) = token_sign_extend64((src) >> (shift), (UINT8)-(bits)); \
|
||||
else \
|
||||
(val) = token_zero_extend64((src) >> (shift), (bits)); \
|
||||
(val) = token_zero_extend64((src) >> (shift), (UINT8)(bits)); \
|
||||
} while (0)
|
||||
|
||||
/* cheesy inline absolute value */
|
||||
|
@ -31,7 +31,7 @@ static UINT8 *colorram;
|
||||
(colorram[index+offset]&0x80)>>7,\
|
||||
0,0,\
|
||||
x<<3, y<<3,\
|
||||
transparency?transparency:-1);
|
||||
transparency?transparency:(UINT32)-1);
|
||||
|
||||
static VIDEO_UPDATE( cardline )
|
||||
{
|
||||
|
@ -271,12 +271,12 @@ static TGP_FUNCTION( anglev )
|
||||
if(a>=0)
|
||||
fifoout_push(0);
|
||||
else
|
||||
fifoout_push(-32768);
|
||||
fifoout_push((UINT32)-32768);
|
||||
} else if(!a) {
|
||||
if(b>=0)
|
||||
fifoout_push(16384);
|
||||
else
|
||||
fifoout_push(-16384);
|
||||
fifoout_push((UINT32)-16384);
|
||||
} else
|
||||
fifoout_push((INT16)(atan2(b, a)*32768/M_PI));
|
||||
next_fn();
|
||||
@ -369,12 +369,12 @@ static TGP_FUNCTION( anglep )
|
||||
if(c>=0)
|
||||
fifoout_push(0);
|
||||
else
|
||||
fifoout_push(-32768);
|
||||
fifoout_push((UINT32)-32768);
|
||||
} else if(!c) {
|
||||
if(d>=0)
|
||||
fifoout_push(16384);
|
||||
else
|
||||
fifoout_push(-16384);
|
||||
fifoout_push((UINT32)-16384);
|
||||
} else
|
||||
fifoout_push((INT16)(atan2(d, c)*32768/M_PI));
|
||||
next_fn();
|
||||
@ -708,12 +708,12 @@ static TGP_FUNCTION( xyz2rqf )
|
||||
if(a>=0)
|
||||
fifoout_push(0);
|
||||
else
|
||||
fifoout_push(-32768);
|
||||
fifoout_push((UINT32)-32768);
|
||||
} else if(!a) {
|
||||
if(c>=0)
|
||||
fifoout_push(16384);
|
||||
else
|
||||
fifoout_push(-16384);
|
||||
fifoout_push((UINT32)-16384);
|
||||
} else
|
||||
fifoout_push((INT16)(atan2(c, a)*32768/M_PI));
|
||||
|
||||
@ -723,7 +723,7 @@ static TGP_FUNCTION( xyz2rqf )
|
||||
if(b>=0)
|
||||
fifoout_push(16384);
|
||||
else
|
||||
fifoout_push(-16384);
|
||||
fifoout_push((UINT32)-16384);
|
||||
} else
|
||||
fifoout_push((INT16)(atan2(b, norm)*32768/M_PI));
|
||||
|
||||
|
@ -2912,6 +2912,8 @@ READ8_DEVICE_HANDLER( k051937_r )
|
||||
//logerror("%04x: read unknown 051937 address %x\n", cpu_get_pc(device->cpu), offset);
|
||||
return 0;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
WRITE8_DEVICE_HANDLER( k051937_w )
|
||||
|
Loading…
Reference in New Issue
Block a user