mirror of
https://github.com/holub/mame
synced 2025-06-22 20:38:50 +03:00
fixed flag calculation in F macro.
This commit is contained in:
parent
0a4dfefd92
commit
5ed8b1252b
@ -3215,18 +3215,18 @@ INLINE INT64 BOUNDS( INT64 n_value, INT64 n_max, int n_maxflag, INT64 n_min, int
|
||||
{
|
||||
if( n_value > n_max )
|
||||
{
|
||||
FLAG |= 1 << n_maxflag;
|
||||
FLAG |= n_maxflag;
|
||||
}
|
||||
else if( n_value < n_min )
|
||||
{
|
||||
FLAG |= 1 << n_minflag;
|
||||
FLAG |= n_minflag;
|
||||
}
|
||||
return n_value;
|
||||
}
|
||||
|
||||
#define A1( a ) BOUNDS( ( a ), 0x7fffffff, 30, -(INT64)0x80000000, 27 )
|
||||
#define A2( a ) BOUNDS( ( a ), 0x7fffffff, 29, -(INT64)0x80000000, 26 )
|
||||
#define A3( a ) BOUNDS( ( a ), 0x7fffffff, 28, -(INT64)0x80000000, 25 )
|
||||
#define A1( a ) BOUNDS( ( a ), 0x7fffffff, ( 1 << 30 ), -(INT64)0x80000000, ( 1 << 27 ) )
|
||||
#define A2( a ) BOUNDS( ( a ), 0x7fffffff, ( 1 << 29 ), -(INT64)0x80000000, ( 1 << 26 ) )
|
||||
#define A3( a ) BOUNDS( ( a ), 0x7fffffff, ( 1 << 28 ), -(INT64)0x80000000, ( 1 << 25 ) )
|
||||
#define Lm_B1( a, l ) LIM( ( a ), 0x7fff, -0x8000 * !l, ( 1 << 31 ) | ( 1 << 24 ) )
|
||||
#define Lm_B2( a, l ) LIM( ( a ), 0x7fff, -0x8000 * !l, ( 1 << 31 ) | ( 1 << 23 ) )
|
||||
#define Lm_B3( a, l ) LIM( ( a ), 0x7fff, -0x8000 * !l, ( 1 << 31 ) | ( 1 << 22 ) )
|
||||
|
Loading…
Reference in New Issue
Block a user