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

Comparing libecb/ecb.pod (file contents):
Revision 1.102 by root, Wed Mar 23 09:58:06 2022 UTC vs.
Revision 1.103 by root, Wed Mar 23 09:59:49 2022 UTC

759=item uint_fast64_t ecb_gray64_encode (uint_fast64_t b) 759=item uint_fast64_t ecb_gray64_encode (uint_fast64_t b)
760 760
761Encode an unsigned into its corresponding (reflective) gray code - the 761Encode an unsigned into its corresponding (reflective) gray code - the
762kind of gray code meant when just talking about "gray code". These 762kind of gray code meant when just talking about "gray code". These
763functions are very fast and all have identical implementation, so there is 763functions are very fast and all have identical implementation, so there is
764no need to use a smaller type, as long as your cpu can handle it natively. 764no need to use a smaller type, as long as your CPU can handle it natively.
765 765
766=item T ecb_gray_encode (T b) [C++] 766=item T ecb_gray_encode (T b) [C++]
767 767
768Overloaded C++ version of the above, for C<uint{8,16,32,64}_t>. 768Overloaded C++ version of the above, for C<uint{8,16,32,64}_t>.
769 769
773 773
774=item uint_fast32_t ecb_gray32_decode (uint_fast32_t b) 774=item uint_fast32_t ecb_gray32_decode (uint_fast32_t b)
775 775
776=item uint_fast64_t ecb_gray64_decode (uint_fast64_t b) 776=item uint_fast64_t ecb_gray64_decode (uint_fast64_t b)
777 777
778Decode a gray code bakc into linear index form (the reverse of 778Decode a gray code back into linear index form (the reverse of
779C<ecb_gray*_encode>. Unlike the enode functions, the decode functions 779C<ecb_gray*_encode>. Unlike the encode functions, the decode functions
780have higher time complexity for larger types, so it cna pay off to use a 780have higher time complexity for larger types, so it can pay off to use a
781smaller type here. 781smaller type here.
782 782
783=item T ecb_gray_decode (T b) [C++] 783=item T ecb_gray_decode (T b) [C++]
784 784
785Overloaded C++ version of the above, for C<uint{8,16,32,64}_t>. 785Overloaded C++ version of the above, for C<uint{8,16,32,64}_t>.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines