# 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()`

#