aboutsummaryrefslogtreecommitdiff
path: root/common/sinetables.cpp
AgeCommit message (Collapse)Author
2018-07-25COMMON: Add at() index function to cosine/sine tableDavid Fioramonti
The cos/sin table class now has an at() function for indexing safely into its internal array. This allows the checking and computing of the correct indexes to be done internally. The indexing in allows cos/sine of 0 to 2pi to be obtained. The values returned by getTable are the same as before. Comments that describe the values that the table contains has been modified to line up with what the code is doing.
2014-02-18COMMON: Make GPL headers consistent in themselves.Johannes Schickel
2013-06-08COMMON: Save memory by allocating only required entries in Cosine-/SineTable.Johannes Schickel
The tables only contain (2^bitPrecision)/2 entries. The code allocated twice as many entries previously.
2013-06-08COMMON: Fix regression in SineTable creation.Johannes Schickel
This is a regression from f4ba8a6485b097a8ef1e2004d1af127243f379f1. The commit replaced the static cosine and sine tables with dynamically created ones. In the process of that a copy&paste error happened which made the sine table use the layout of the cosine table. This commit now changes the dynamically created sine tables to conform to the layout of the previous static tables.
2012-09-26JANITORIAL: Remove trailing whitespaces.Johannes Schickel
Powered by: git ls-files "*.cpp" "*.h" "*.m" "*.mm" | xargs sed -i -e 's/[ \t]*$//'
2012-04-14COMMON: Replaced static Sine and Cosine tables with dynamic generated.D G Turner
This removes the large static tables from the binary (which saves 500K to 1Mb of binary size) and replaced them with a class which generates the required tables as needed in RAM. This has been tested with QDM2 and shows no obvious performance degredation and Memprof shows no significant rise in RAM usage.
2012-04-13COMMON: Minor reduction of sine/cosine table size (8 bytes...).D G Turner
2011-07-19JANITORIAL: Fix MSVC warningsLittleboy
- Conversion from double to float - Unary minus operator applied to unsigned type - ARRAYSIZE redefinition
2011-07-19COMMON: Move cosine/sine tables out of header filesMatthew Hoops
Access is now restricted to using the getSineTable()/getCosineTable() helper functions.