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

Comparing libecb/ecb.pod (file contents):
Revision 1.94 by root, Sat Jul 31 16:13:30 2021 UTC vs.
Revision 1.95 by root, Sun Aug 1 10:00:33 2021 UTC

732=item uint64_t ecb_rotr64 (uint64_t x, unsigned int count) 732=item uint64_t ecb_rotr64 (uint64_t x, unsigned int count)
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>). There are no restrictions on the value C<count>, i.e. both 736(C<ecb_rotl>). There are no restrictions on the value C<count>, i.e. both
737zero and values equal or larger than the word width work correctly. 737zero and values equal or larger than the word width work correctly. Also,
738notwithstanding C<count> being unsigned, negative numbers work and shift
739to the opposite direction.
738 740
739Current GCC/clang versions understand these functions and usually compile 741Current GCC/clang versions understand these functions and usually compile
740them to "optimal" code (e.g. a single C<rol> or a combination of C<shld> 742them to "optimal" code (e.g. a single C<rol> or a combination of C<shld>
741on x86). 743on x86).
742 744

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines