Monthly Archives: May 2006

Some Superfast Inline functions

The following functions are snippets to calculate trigonometry functions Sine and Cosine using GCC 3.1 or newer. fSinCos calculates sine and cosine simultaneously using FP assembly fsincos. double fSin(double angle){ double _res; asm (“fld %[angle]\nfsin” : [output] “=&t” (_res) : … Continue reading

Posted in Uncategorized | Leave a comment

Heaven for hobbiest

Recently, my order of some chips had arrived. One package was from Analog-Device Ltd., another one was from Maxim Electronics Ltd. These microchips (various chips, but majority are ADC/DAC) were sent by them for free (yes, it is totally free, … Continue reading

Posted in Uncategorized | Leave a comment