Site Tools


documentation:development:opera:pf25:ppgfldr:pgsfldr:spr:01spr051

FindLSB

Finds the least-significant bit.

Synopsis

int FindLSB( uint32 mask )

Description

FindLSB() finds the lowest-numbered bit that is set in the argument. The least-significant bit is bit number 1, and the most-significant bit is bit 32.

Arguments

  • flags The 32-bit word to check.

Return Value

FindLSB() returns the number of the lowest-numbered bit that is set in the argument (for example, 1 if the value of the argument is 1 or 3 or 7, 3 if the value of the argument is 4 or 12). If no bits are set, the procedure returns 0.

Implementation

Convenience call implemented in clib.lib V20.

Associated Files

  • clib.lib ARM Link Library

See Also

FindMSB(), ffs()


documentation/development/opera/pf25/ppgfldr/pgsfldr/spr/01spr051.txt · Last modified: 2022/10/10 16:53 by 127.0.0.1