Binary cleverness
Graham Stabler
Posts: 2,510
One thing that has struck me when using the propeller is how much I have used assembly, most of my interests are in real time or at least fast applications so I have tended to check out the logic of and idea before moving to assembly.
At that point my rustyness in the art of binary manipulation and generally binary number in general has really struck me, I look at example code and it takes me a long time to work out what the heck is going on with all the bist shifts and flips and rotations, and then there is the legendary Cordics. The concept of representing floating point numbers to a given precision with intergers was also new to m.
Personally rather than struggle through doing things badly I prefer to do some background reading on this sort of stuff and I was wondering if there are any decent books?
Graham
At that point my rustyness in the art of binary manipulation and generally binary number in general has really struck me, I look at example code and it takes me a long time to work out what the heck is going on with all the bist shifts and flips and rotations, and then there is the legendary Cordics. The concept of representing floating point numbers to a given precision with intergers was also new to m.
Personally rather than struggle through doing things badly I prefer to do some background reading on this sort of stuff and I was wondering if there are any decent books?
Graham
Comments
"Math Toolkit for Real-Time Programming" by Jack W. Crenshaw (I only know of it in print).
HAKMEM (see http://en.wikipedia.org/wiki/HAKMEM·for links, I've also seen it in print).
Tracy Allen's information on Basic Stamp math (http://www.emesystems.com/BS2index.htm#math); while Stamp oriented, you will find, among other useful stuff, information on CORDIC.
Eric Weddington's "Programming 101" on bit operations in C (a popular reference·on another forum).
I have not yet started reading the Numerical Recipies (in C, C++, and Fortran) books (see http://www.nr.com/), but hope to do so someday.
Daniel
you can't know everything
Graham
cse.stanford.edu
ocw.mit.edu/index.html