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

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

625 625
626=item int ecb_clz32 (uint32_t x) 626=item int ecb_clz32 (uint32_t x)
627 627
628=item int ecb_clz64 (uint64_t x) 628=item int ecb_clz64 (uint64_t x)
629 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 630Counts the number of leading zero bits in C<x>. If C<x> is 0 the result is
633undefined. 631undefined.
634 632
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 633It is often simpler to use one of the C<ecb_ld*> functions instead, whose
639result only depends on the value and not the size of the type. 634result only depends on the value and not the size of the type. This is
635also the reason why there is no C++ overload.
640 636
641For example: 637For example:
642 638
643 ecb_clz32 (3) = 30 639 ecb_clz32 (3) = 30
644 ecb_clz32 (6) = 29 640 ecb_clz32 (6) = 29

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines