| 31 |
/** \ingroup avr_string |
/** \ingroup avr_string |
| 32 |
\fn int ffs (int val); |
\fn int ffs (int val); |
| 33 |
|
|
| 34 |
\brief This functions find the first (least significant) bit set in the input value. |
\brief This function finds the first (least significant) bit set in the input value. |
| 35 |
|
|
| 36 |
\returns The ffs() function returns the position of the first |
\returns The ffs() function returns the position of the first |
| 37 |
(least significant) bit set in the word val, or 0 if no bits are set. |
(least significant) bit set in the word val, or 0 if no bits are set. |
| 38 |
The least significant bit is position 1. */ |
The least significant bit is position 1. |
| 39 |
|
|
| 40 |
|
\note For expressions that are constant at compile time, consider |
| 41 |
|
using the \ref _FFS macro instead. |
| 42 |
|
*/ |
| 43 |
|
|
| 44 |
#ifndef __DOXYGEN__ |
#ifndef __DOXYGEN__ |
| 45 |
|
|