Revision 1.31 by

Revision 1.32 by

… | … | ||
---|---|---|---|

414 | 414 | ||

415 | =item int ecb_ctz32 (uint32_t x) | 415 | =item int ecb_ctz32 (uint32_t x) |

416 | 416 | ||

417 | Returns the index of the least significant bit set in C<x> (or | 417 | Returns the index of the least significant bit set in C<x> (or |

418 | equivalently the number of bits set to 0 before the least significant bit | 418 | equivalently the number of bits set to 0 before the least significant bit |

419 | set), starting from 0. If C<x> is 0 the result is undefined. A common use | 419 | set), starting from 0. If C<x> is 0 the result is undefined. For example: |

420 | case is to compute the integer binary logarithm, i.e., C<floor (log2 | ||

421 | (n))>. For example: | ||

422 | 420 | ||

423 | ecb_ctz32 (3) = 0 | 421 | ecb_ctz32 (3) = 0 |

424 | ecb_ctz32 (6) = 1 | 422 | ecb_ctz32 (6) = 1 |

425 | 423 | ||

426 | =item int ecb_popcount32 (uint32_t x) | 424 | =item int ecb_popcount32 (uint32_t x) |

– |
Removed lines |

+ |
Added lines |

< |
Changed lines |

> |
Changed lines |