[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'System' (#rtl)

BsrDWord

Return the position of the leftmost set bit in a 32-bit value

Declaration

Source position: systemh.inc line 1029

function BsrDWord(

  const AValue: DWord

):Cardinal;

Description

BsrDWord scans the DWord AValue, starting at the leftmost position and working towards position 0, and returns the index of the first set bit. The position is measured from the 0-th, rightmost bit.

See also

BsrByte

  

Return the position of the leftmost set bit in an 8-bit value

BsrWord

  

Return the position of the leftmost set bit in a 16-bit value

BsfDWord

  

Return the position of the rightmost set bit in a 32-bit value

BsrQWord

  

Return the position of the leftmost set bit in a 64-bit value


Documentation generated on: Nov 16 2015