ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libecb/ecb.pod
(Generate patch)

Comparing libecb/ecb.pod (file contents):
Revision 1.104 by root, Fri Mar 25 08:44:14 2022 UTC vs.
Revision 1.105 by root, Fri Mar 25 15:22:17 2022 UTC

620 620
621For example: 621For example:
622 622
623 ecb_ctz32 (3) = 0 623 ecb_ctz32 (3) = 0
624 ecb_ctz32 (6) = 1 624 ecb_ctz32 (6) = 1
625
626=item int ecb_clz32 (uint32_t x)
627
628=item int ecb_clz64 (uint64_t x)
629
630=item int ecb_clz (T x) [C++]
631
632Counts the number of leading zero bits in C<x>. If C<x> is 0 the result is
633undefined.
634
635The overloaded C++ C<ecb_clz> function supports C<uint32_t> and
636C<uint64_t> types only.
637
638It is often simpler to use one of the C<ecb_ld*> functions instead, whoise
639result only depends on the value and not the size of the type.
640
641For example:
642
643 ecb_clz32 (3) = 30
644 ecb_clz32 (6) = 29
625 645
626=item bool ecb_is_pot32 (uint32_t x) 646=item bool ecb_is_pot32 (uint32_t x)
627 647
628=item bool ecb_is_pot64 (uint32_t x) 648=item bool ecb_is_pot64 (uint32_t x)
629 649

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines