Archives

You are currently viewing archive for April 2010

05.04.10: Software : : Fixed-point Math for Embedded Systems, Part 2

As mentioned in my previous post , Fixed-point Arithmetic is proving more and more interesting. Ahem, I created an Open Source project at Bitbucket ! Here's the link : Fixed-Point Math Library. You can download the latest version of software for free and try it out. I've created versions 0.1, 0.2 and 0.3, but it's always suggested to use the 'TIP'

I managed to code a thousand lines in just three days (Happy Easter !) over the long weekend. So the following, features are complete:

  1. Conversions among fixed-point, floating-point and ASCII strings (with or without rounding)
  2. Extracting integer-part and fractional-part of Q-number, absolute value & saturation
  3. Add, Subtract, Multiply, Divide (different versions for dealing with rounding and saturation in different Q-formats available)
  4. Fixed-point Square-root and Inverse Sqrt

One more feature I added are unit-tests -- as and when I implement new code, CuTesT will automatically generate template for my test suite. Currently there are about 18 test suites, take a look at the test/
folder in the downloaded zip. Of course, all of them are passing !



Category: Software Posted by: bdsatish

» Read More

RSS Feed


ComSigProc


Navigation