Sign in Join
FPDoc Onlineexperiment

SarInt64 function

In unit System

64-bit Shift Arithmetic Right.

Declaration

pascal
function SarInt64(const AValue: Int64): Int64

Description

SarInt64 performs an arithmetic right shift for Shift positions on a 64-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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.