Content deleted Content added
Tags: Reverted Visual edit |
Andy Dingley (talk | contribs) Unsourced and very dubious Undid revision 1271157411 by Arturdan (talk) |
||
Line 216:
== Converting to and from Gray code ==
The following functions in [[C (programming language)|C]] convert between binary numbers and their associated Gray codes. While it may seem that Gray-to-binary conversion requires each bit to be handled one at a time, faster algorithms exist.<ref name="Dietz_2002"
▲The following functions in [[C (programming language)|C]] convert between binary numbers and their associated Gray codes. While it may seem that Gray-to-binary conversion requires each bit to be handled one at a time, faster algorithms exist.<ref name="Dietz_2002" /><ref name="Powell_1968" /><ref group="nb" name="NB_Arithmetic_conversion" />
<syntaxhighlight lang="C">
|