mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 21:23:04 +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
(cherry picked from commit 3da900bf17
)
This commit is contained in:
parent
c915e9d1ec
commit
536176999a
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