summaryrefslogtreecommitdiff
path: root/apps/codecs/libcook/cookdata_fixpoint.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libcook/cookdata_fixpoint.h')
-rw-r--r--apps/codecs/libcook/cookdata_fixpoint.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/codecs/libcook/cookdata_fixpoint.h b/apps/codecs/libcook/cookdata_fixpoint.h
index b394c46a27..7a9440c664 100644
--- a/apps/codecs/libcook/cookdata_fixpoint.h
+++ b/apps/codecs/libcook/cookdata_fixpoint.h
@@ -26,7 +26,7 @@
26 * fixed point data types and constants 26 * fixed point data types and constants
27 */ 27 */
28 28
29#include <stdint.h> 29#include <inttypes.h>
30typedef int32_t FIXP; /* Fixed point variable type */ 30typedef int32_t FIXP; /* Fixed point variable type */
31typedef uint16_t FIXPU; /* Fixed point fraction 0<=x<1 */ 31typedef uint16_t FIXPU; /* Fixed point fraction 0<=x<1 */
32 32
@@ -39,11 +39,11 @@ typedef FIXP REAL_T;
39typedef struct { 39typedef struct {
40} realvars_t; 40} realvars_t;
41 41
42 42#ifdef TEST
43#define cPI1_8 0xec83 /* 1pi/8 2^16 */ 43#define cPI1_8 0xec83 /* 1pi/8 2^16 */
44#define cPI2_8 0xb505 /* 2pi/8 2^16 */ 44#define cPI2_8 0xb505 /* 2pi/8 2^16 */
45#define cPI3_8 0x61f8 /* 3pi/8 2^16 */ 45#define cPI3_8 0x61f8 /* 3pi/8 2^16 */
46 46#endif
47static const FIXPU sincos_lookup[2050] = { 47static const FIXPU sincos_lookup[2050] = {
48 /* x_i = 2^16 sin(i 2pi/8192), 2^16 cos(i 2pi/8192); i=0..1024 */ 48 /* x_i = 2^16 sin(i 2pi/8192), 2^16 cos(i 2pi/8192); i=0..1024 */
49 0x0000, 0xffff, 0x0032, 0xffff, 0x0065, 0xffff, 0x0097, 0xffff, 49 0x0000, 0xffff, 0x0032, 0xffff, 0x0065, 0xffff, 0x0097, 0xffff,