mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 20:03:02 +01:00
Fix for #7603: BIN_SHR on INT128 does not apply sign extension
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
b5bdc13eb2
commit
3da900bf17
18
extern/ttmath/ttmathint.h
vendored
18
extern/ttmath/ttmathint.h
vendored
@ -1797,6 +1797,24 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Int<value_size> operator>>(int move) const
|
||||||
|
{
|
||||||
|
Int<value_size> temp( *this );
|
||||||
|
|
||||||
|
temp.Rcr(move, UInt<value_size>::IsTheHighestBitSet() ? 1 : 0);
|
||||||
|
|
||||||
|
return temp;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
UInt<value_size> & operator>>=(int move)
|
||||||
|
{
|
||||||
|
UInt<value_size>::Rcr(move, UInt<value_size>::IsTheHighestBitSet() ? 1 : 0);
|
||||||
|
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user