Algorithms directly working on Gray code variables

From: Tilmann Reh (tilmann.reh_at_autometer.de)
Date: 03/22/04


Date: Mon, 22 Mar 2004 12:02:44 +0100

Hello,

I'm looking for algorithms/methods (or even implementations)
to perform some actions directly on gray coded variables.

Needed functions:
- increment (for counting)
- conversion to decimal (for display)
- comparison

I know I can convert to/from binary, and I know how to do that.
However, if there were "direct" methods, I would prefer them.

Thanks for any hints,

-- 
Dipl.-Ing. Tilmann Reh
Autometer GmbH Siegen - Elektronik nach Maß.
http://www.autometer.de
==================================================================
In a world without walls and fences, who needs Windows and Gates ?
(Sun Microsystems)


Relevant Pages

  • Re: Auto Increment records like a new emplyee number
    ... You'd use your other info for display. ... "TonySper" wrote in message ... > contains your id counter, increment it, and then unlock the record. ... >> As long as everyone attempts to lock the table before counting, ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Question on ->V2 and ->ARRY
    ... HP48/49/50 Coordinate Representation and Conversion ... Input and stack display notation: ... t Polar angle in xy plane ... that ordinarily no special commands are required; ...
    (comp.sys.hp48)
  • Re: Question on ->V2 and ->ARRY
    ... HP48/49/50 Coordinate Representation and Conversion ... Input and stack display notation: ... t Polar angle in xy plane ... that ordinarily no special commands are required; ...
    (comp.sys.hp48)
  • Re: WILL A PAL DVD PLAY IN NTSC COUNTRIES?
    ... The PAL speedup for theatrical movies may wreck havoc with ... |> If the movie is shot at 24 fps, it should be played at 24 fps. ... If I want to run a CRT display at 72 Hz, ... Conversion is so cheap these days. ...
    (rec.video.production)
  • Re: Translate small Perl to equivalent VB6?
    ... use that 31st bit (127.255.255.255 increment to 128.0.0.0) VB will raise ... code as was the conversion algorithm. ... Dim lng As Long ... The first thing you'll notice is that VB won't even run the loop! ...
    (microsoft.public.vb.general.discussion)