SarShortint
8-bit Shift Arithmetic Right
Declaration
Source position: systemh.inc line 1122
function SarShortint(const AValue: ShortInt; const Shift: Byte)
: ShortInt;
Description
SarShortint performs an arithmetic right shift for Shift positions on an 8-bit integer AValue and returns the result. Shift is optional, and is 1 by default. The difference with the regular Shr shift operation is that the leftmost bit is preserved during the shift operation.
See also
Name | Description |
---|---|
SarInt64 | 64-bit Shift Arithmetic Right |
SarLongint | 32-bit Shift Arithmetic Right |
SarSmallint | 16-bit Shift Arithmetic Right |