Tag Archives: embedded systems

The following post will revolve around a C++ snippet taken from a book I bought recently – Building Embedded Systems by Changyi Gu. The snippet will generate a cosine lookup table of 2048 items – which could be used to avoid floating point math. Useful for cases where we are very time-constrained when running the program. Author’s first version of building a lookup table contains manually constructing an array of […]