summaryrefslogtreecommitdiff
path: root/mdct_lookup.h
diff options
context:
space:
mode:
authorTim Terriberry <tterribe@xiph.org>2010-10-13 19:29:58 +0000
committerTim Terriberry <tterribe@xiph.org>2010-10-13 19:29:58 +0000
commit3d08906f001bb07add4d01f4b92ae682b7d3bfd7 (patch)
tree56fd40d26a0adaceec75731c63e01091f047854b /mdct_lookup.h
parent7f748eae32c7ebdb7725b2e9b6595804cc5566c3 (diff)
downloadtremor-3d08906f001bb07add4d01f4b92ae682b7d3bfd7.tar.gz
Const-ify some static data tables.
Moral equivalent of r15937 for libvorbis. git-svn-id: https://svn.xiph.org/trunk/Tremor@17509 0101bb08-14d6-0310-b084-bc0e0c8e3800
Diffstat (limited to 'mdct_lookup.h')
-rw-r--r--mdct_lookup.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdct_lookup.h b/mdct_lookup.h
index 627aee1..ee4f101 100644
--- a/mdct_lookup.h
+++ b/mdct_lookup.h
@@ -18,7 +18,7 @@
#include "misc.h"
/* {sin(2*i*PI/4096), cos(2*i*PI/4096)}, with i = 0 to 512 */
-static LOOKUP_T sincos_lookup0[1026] = {
+static const LOOKUP_T sincos_lookup0[1026] = {
X(0x00000000), X(0x7fffffff), X(0x003243f5), X(0x7ffff621),
X(0x006487e3), X(0x7fffd886), X(0x0096cbc1), X(0x7fffa72c),
X(0x00c90f88), X(0x7fff6216), X(0x00fb5330), X(0x7fff0943),
@@ -279,7 +279,7 @@ static LOOKUP_T sincos_lookup0[1026] = {
};
/* {sin((2*i+1)*PI/4096), cos((2*i+1)*PI/4096)}, with i = 0 to 511 */
-static LOOKUP_T sincos_lookup1[1024] = {
+static const LOOKUP_T sincos_lookup1[1024] = {
X(0x001921fb), X(0x7ffffd88), X(0x004b65ee), X(0x7fffe9cb),
X(0x007da9d4), X(0x7fffc251), X(0x00afeda8), X(0x7fff8719),
X(0x00e23160), X(0x7fff3824), X(0x011474f6), X(0x7ffed572),