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

Comparing libecb/ecb.pod (file contents):
Revision 1.92 by sf-exg, Tue Jun 22 05:28:44 2021 UTC vs.
Revision 1.93 by root, Sat Jul 31 14:39:16 2021 UTC

733 733
734These two families of functions return the value of C<x> after rotating 734These two families of functions return the value of C<x> after rotating
735all the bits by C<count> positions to the right (C<ecb_rotr>) or left 735all the bits by C<count> positions to the right (C<ecb_rotr>) or left
736(C<ecb_rotl>). 736(C<ecb_rotl>).
737 737
738The valid range for C<count> is C<1> to the number of bits in the
739underlying datatype minus one (7/15/31/63). If you need a rotate count
740of zero you need to add an extra check before calling these functions
741currently.
742
738Current GCC/clang versions understand these functions and usually compile 743Current GCC/clang versions understand these functions and usually compile
739them to "optimal" code (e.g. a single C<rol> or a combination of C<shld> 744them to "optimal" code (e.g. a single C<rol> or a combination of C<shld>
740on x86). 745on x86).
741 746
742=item T ecb_rotl (T x, unsigned int count) [C++] 747=item T ecb_rotl (T x, unsigned int count) [C++]

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines