2016.11.14 Update:

Newer version available here.

Of course all C/C++ IDEs and compilers have access to standard trig function libraries, but the functions in math.h and other standard libraries tend to be very expensive and produce vastly finer precision than I need for my microcontroller applications. I would much rather have a library that calculates sines and cosines at 8- or 16-bit precision really, really quickly, so I wrote a stripped down library that does exactly that. eightBitTrig produces 8-bit sine/cosine/tangent values just about quickly as is logically possible using lookup tables and integer math.

Newer version available here.

Of course all C/C++ IDEs and compilers have access to standard trig function libraries, but the functions in math.h and other standard libraries tend to be very expensive and produce vastly finer precision than I need for my microcontroller applications. I would much rather have a library that calculates sines and cosines at 8- or 16-bit precision really, really quickly, so I wrote a stripped down library that does exactly that. eightBitTrig produces 8-bit sine/cosine/tangent values just about quickly as is logically possible using lookup tables and integer math.