diff options
author | Johannes Schickel | 2013-06-08 21:46:29 +0200 |
---|---|---|
committer | Johannes Schickel | 2013-06-08 21:56:48 +0200 |
commit | bc358b77a8b018901f58e43a8b530113c7716688 (patch) | |
tree | 5b4586a713b18656b6b32af3a887341e170a090c /common | |
parent | 4da5d11e1f7eff787144289af08dd50cd788423e (diff) | |
download | scummvm-rg350-bc358b77a8b018901f58e43a8b530113c7716688.tar.gz scummvm-rg350-bc358b77a8b018901f58e43a8b530113c7716688.tar.bz2 scummvm-rg350-bc358b77a8b018901f58e43a8b530113c7716688.zip |
COMMON: Improve comment in CosineTable::CosineTable.
This commit changes the comment to use the same variable names as we do in the
code. Furthermore, it also makes the comment a bit easier to grasp.
Diffstat (limited to 'common')
-rw-r--r-- | common/cosinetables.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/cosinetables.cpp b/common/cosinetables.cpp index e6bf790611..3b245750fa 100644 --- a/common/cosinetables.cpp +++ b/common/cosinetables.cpp @@ -36,8 +36,8 @@ CosineTable::CosineTable(int bitPrecision) { double freq = 2 * M_PI / m; _table = new float[m / 2]; - // Table contains cos(2*pi*x/n) for 0<=x<=n/4, - // followed by its reverse + // Table contains cos(2*pi*i/m) for 0<=i<m/4, + // followed by 3m/4<=i<m for (int i = 0; i <= m / 4; i++) _table[i] = cos(i * freq); |