Sign in

username:

password:



Not a member?

Search c55x



Search tips

Subscribe to c55x



c55x by Keywords

AIC23 | C5509 | CCS | CSL | EMIF | EVM | GEL | GPIO | HPI | Interfacing | JTAG | McBSP | OMAP | Omap15 | OMAP59 | RTDX | SDRAM | TMS320VC5509 | USB | XDS5

Discussion Groups

Discussion Groups | TMS320C55x | Buil error

Technical discussions about the TI C55x DSPs (including the c5501, c5502, c5503, c5507, c5509, c5510 and OMAP5910).

  

Post a new Thread

Buil error - Ang Teik Boon - Mar 15 8:39:46 2007



hi Jeff, 
i facing this error:

[Linking...] "C:\CCStudio_v3.1\C5500\cgtools\bin\cl55" -@"Debug.lkf"
<Linking>
>>   error: can't allocate .rtdx_data, size 00000250 (page 0) in DARAM (avail:
            000001a8)
>>   error: can't allocate .sysstack, size 00000200 (page 0) in DARAM (avail:
            000001a8)
>>   error: can't allocate .trace, size 00000200 (page 0) in DARAM (avail:
            000001a8)
>>   error: can't allocate .sysdata, size 00000178 (page 0) in DARAM (avail:
            00000028)
>>   error: can't allocate .csldata, size 00000128 (page 0) in DARAM (avail:
            00000028)
>>   error: can't allocate .LOG_system$buf, size 00000080 (page 0) in DARAM
            (avail: 00000028)
>>   error: can't allocate .pip, size 000000c8 (page 0) in DARAM (avail:
            00000028)
>>   error: can't allocate .const, size 000000a0 (page 0) in DARAM (avail:
            00000028)
>>   error: can't allocate .hst0, size 00000080 (page 0) in DARAM (avail:
            00000028)
>>   error: can't allocate .idl, size 00000020 (page 0) in DARAM (avail:
            00000004)
>>   error: can't allocate .log, size 00000014 (page 0) in DARAM (avail:
            00000004)
>>   error: can't allocate .sts, size 00000010 (page 0) in DARAM (avail:
            00000004)
>>   error: can't allocate .sys, size 00000010 (page 0) in DARAM (avail:
            00000004)
>>   error: can't allocate .args, size 00000010 (page 0) in DARAM (avail:
            00000004)
>>   error: can't allocate .hst1, size 00000010 (page 0) in DARAM (avail:
            00000004)
>>   error: can't allocate .clk, size 00000008 (page 0) in DARAM (avail:
            00000004)
>>   error: errors in input - ./Debug/tone.out not build.

//the coding whose cause this error is the below:
Int16 light[SINE_TABLE_SIZE_light] =
{-768,-512,-768,-1280,-2304,-3328,-4608,-5120,-4864,-4352,-3072,-2048,-1024,-256,512,1792,3072,
4096,5120,5376,5376,4864,4352,3840,3072,2560,1792,768,0,-256,-1024,-1280,-1792,-1792,-1792,-153
6,-1024,-768,0,768,1536,2304,2560,2816,2816,2048,1536,256,-768,-2560,-4352,-5888,-7168,-8448,-9
216,-9728,-9216,-7680,-5888,-3328,-768,1024,2816,4352,5888,7424,7936,8192,7424,6144,4864,3328,2
304,1024,0,-768,-1536,-2048,-2304,-2048,-1280,-512,0,512,1280,2048,2816,3328,3840,3840,3584,281
6,1792,512,-768,-2304,-3840,-5888,-7680,-9216,-10752,-11776,-11520,-10496,-8448,-5632,-2816,-25
6,1792,3584,5632,7168,8704,9472,9472,8704,7424,6144,4608,3840,2560,1536,512,-256,-768,-1024,-10
24,-768,-768,-512,0,0,256,512,768,1024,1280,1024,512,0,-768,-2048,-3072,-4352,-5376,-6912,-8192
,-9984,-11008,-12032,-11008,-9216,-6656,-3328,-768,1280,3072,5120,6656,8448,9728,9984,8960,7680
,5632,4096,2816,1792,1024,256,-256,-1024,-1280,-1024,-512,256,768,1280,1536,2048,2560,2816,3328
,3328,2560,2048,256,-768,-2304,-3328,-
4864,-5888,-7424,-9216,-11264,-12544,-13824,-13312,-11520,-8704,-4864,-1792,512,2560,4352,6656,
8704,10496,11520,11520,10496,8704,6656,4608,3328,2304,1280,256,-256,-1280,-2048,-2048,-1792,-76
8,0,512,1024,1280,1792,2304,2560,2816,2304,1280,0,-1536,-3072,-4096,-4352,-5888,-7680,-9472,-11
776,-13312,-13568,-12288,-9216,-5376,-2048,768,2816,4096,5632,7168,8704,9472,9216,7936,6144,435
2,2560,1792,1280,1280,1280,1280,1280,1280,1536,1792,2560,2816,3072,3072,2560,2048,1792,1280,102
4,512,-512,-2048,-3584,-5888,-7168,-8192,-9728,-11264,-12544,-14592,-15872,-16128,-14592,-10496
,-5632,-1024,3328,5632,7168,8960,9984,11264,12032,11008,8960,6144,3072,1024,0,-768,-768,-768,-7
68,-512,0,768,1536,2560,3328,3840,3840,3840,3840,3840,3584,3584,2560,1280,-512,-2816,-5888,-896
0,-12544,-16384,-19456,-22016,-24064,-24320,-22272,-17152,-8960,-1024,6400,12032,14592,15616,16
384,15872,14592,11520,6656,1536,-2304,-5376,-5376,-3840,-768,2048,4864,6656,7936,8704,8704,8448
,7424,5120,3072,1024,-256,0,512,2304,3
584,3840,2560,256,-2816,-7168,-11008,-14592,-17664,-18944,-19712,-18432,-16640,-12288,-4352,460
8,13312,18176,18176,10752,2560,-3840,-5888,-3328,0,1024,1024,-256,256,3840,8704,12032,12032,870
4,3584,0,-1536,-1024,256,1536,2304,2816,2560,3584,4864,6400,6912,6656,4096,0,-4352,-7680,-8960,
-7680,-7936,-9472,-13568,-18432,-21504,-22272,-17664,-5120,6400,17664,20480,15872,6400,-1792,-6
656,-5120,-1536,1536,2304,2048,1536,3840,6400,8448,8704,6144,3584,2048,2560,2816,3072,3328,3840
,4352,4864,3840,3584,3328,3840,6400,7168,4864,-256,-8192,-11776,-12032,-8192,-7680,-9216,-14848
,-18688,-20992,-19200,-15360,-2560,7936,18944,17408,10240,-1280,-8192,-8704,-2048,3584,7424,742
4,7680,7936,8704,6656,2304,-1536,-2560,0,4096,6400,5632,3840,3584,4864,7680,7424,5120,2816,2816
,5120,6912,6400,2816,-256,-4864,-6400,-8192,-8960,-12032,-14592,-17152,-17408,-17920,-16896,-16
128,-4864,7680,19712,19712,9728,-2560,-9984,-8448,0,6144,8960,6400,5888,5888,6656,3840,256,-281
6,-1280,1536,5888,5888,3840,1024,1536,
3584,6400,6400,5376,4096,5376,6400,6656,5376,3072,2048,-1280,-5888,-10752,-15616,-16128,-15104,
-12288,-10240,-10240,-12032,-10752,3072,14080,22528,15360,3840,-5120,-5120,1536,4864,5888,3840,
4352,6912,9216,8192,4096,256,-512,256,2816,2560,2048,768,1280,2560,3328,2304,256,-1280,-1280,-7
68,-256,-768,-1792,-2560,-3328,-4096,-6656,-8448,-11520,-13312,-13824,-12544,-12288,-12800,-140
80,-12800,4352,16896,25856,15872,512,-8960,-8192,0,4352,5632,4864,6400,9984,9984,5632,768,-2304
,256,2816,4352,1792,-1024,-1280,768,3072,2816,512,-256,0,2304,2304,1024,-1536,-3072,-2304,-1792
,-1536,-3328,-5632,-6656,-10496,-14336,-17152,-16896,-14592,-13056,-13824,-1536,12032,23040,197
12,5120,-7168,-7936,-2048,6656,6144,6144,5632,9216,11008,7168,1024,-2048,-512,4352,6400,4096,0,
-2560,0,2560,3840,1536,-512,0,2304,3840,3584,768,-1280,-2560,-2816,-3072,-3328,-3584,-5376,-742
4,-12288,-14848,-16128,-15360,-13568,-14336,-14080,2560,16640,25088,15360,-2048,-10240,-6656,10
24,7168,5376,6144,9472,12800,9472,512,
-5120,-3328,3840,9216,7424,2816,0,0,1792,1536,1024,768,1536,3072,3328,1792,512,256,0,-1792,-358
4,-4352,-2304,-1280,-2816,-7424,-13824,-17920,-16640,-14080,-12288,-13568,-14336,-1792,14592,21
760,15872,-512,-7680,-4864,0,4096,2816,5632,11264,12032,7936,768,-3328,-256,2816,5632,4864,3840
,3328,2304,1024,768,0,1536,2304,2560,3072,2304,1280,768,256,0,-1792,-4352,-5120,-3328,-2048,-35
84,-8192,-15104,-17920,-15104,-12288,-11520,-14336,-14592,5888,18432,21760,9984,-3328,-5632,-10
24,768,2048,1792,8960,13824,12800,5120,-2048,-2560,1024,4352,5632,4352,4608,4352,2816,512,-512,
0,2304,2560,1280,1536,2048,2560,1792,768,-768,-1792,-3072,-3584,-2816,-3328,-4864,-7424,-11264,
-13824,-11264,-11520,-13056,-15360,-15360,1024,18688,18944,10496,-1280,-2560,768,-2560,-3072,0,
8704,15104,11520,3840,768,512,1280,256,256,3328,7168,6400,4352,1024,-512,256,1024,1536,512,256,
2816,3328,2560,512,0,512,256,-2816,-5888,-4352,-2560,-2816,-7680,-12800,-13056,-9984,-11520,-14
592,-16384,-14336,4352,17920,16640,972
8,3840,2816,3840,-3328,-4096,0,7424,12544,10240,4864,4096,3072,1792,0,-256,2816,5376,4864,3328,
1536,256,1024,768,256,0,0,2048,2560,1792,256,512,512,0,-3328,-4608,-3584,-3840,-6656,-11776,-14
848,-13824,-10752,-11776,-14080,-13312,-11264,7424,15616,12544,9472,6144,5120,3584,-6400,-4352,
2560,7936,11008,7936,5376,7936,3840,-768,-2048,-256,5376,6400,2816,3328,4352,2048,0,-1536,0,179
2,256,-512,512,1024,1280,-256,-1280,-2304,-3072,-4352,-4352,-5376,-7168,-8960,-12032,-12544,-11
008,-11008,-11264,-12800,-13056,-3584,12544,9472,8192,8192,6912,6400,-768,-3840,512,2304,5120,6
400,4352,7168,4864,1024,256,0,256,2048,2048,3840,3840,3584,2304,256,512,0,-768,0,1024,1280,512,
256,256,1280,0,-2560,-3840,-2560,-3072,-5376,-7424,-11776,-13312,-13312,-12544,-12032,-13568,-1
3312,-7168,7424,8192,6400,9728,10752,7168,2304,-2560,256,2048,1280,3072,5120,6144,5888,3072,153
6,1792,512,512,512,2560,2816,2560,2304,2304,1280,512,512,0,0,256,0,-256,512,1792,1536,0,-768,-1
280,-1792,-3840,-7168,-11008,-14080,-1
5104,-16128,-16896,-15360,-15104,-12800,-1280,4352,4864,11264,15360,12032,11520,7936,4096,768,-
1536,-1536,-2304,-3840,-1536,512,-256,1280,2816,3328,3328,3840,4864,3840,2560,3072,3072,768,256
,1280,512,-768,-1024,256,-512,-2560,-512,512,-256,-512,768,768,-256,-1536,-4096,-7424,-9984,-11
776,-13824,-15104,-15872,-14592,-6400,-512,256,8192,12800,12288,13568,12032,9216,5632,2048,512,
-1024,-4352,-3072,-1792,-1792,-256,2304,3840,4608,5376,6656,6912,4096,3584,3328,1024,-768,-512,
-256,-512,-1536,0,1280,0,-1024,1280,512,-768,-1792,-1024,-1280,-2560,-3584,-5632,-8448,-10496,-
12032,-13824,-15360,-15872,-13824,-4864,-4608,512,8448,9984,11264,15360,12032,11008,8704,5632,3
072,0,-2816,-2560,-4352,-4352,-2304,-1280,-512,2048,3584,4864,5376,5120,5120,4096,2304,1792,102
4,256,-512,-256,-768,-512,-768,-1024,-1280,-256,-256,-1536,-768,256,-512,-1536,-4096,-6656,-819
2,-10496,-13568,-15104,-15872,-15104,-7680,-8192,-3328,4096,5632,7680,13568,11264,11264,10752,8
192,6400,3840,256,256,-2304,-3840,-230
4,-2560,-2304,-256,256,1536,3072,2816,4096,3840,3328,3584,3072,2304,2816,1536,1536,1024,0,-512,
-512,-1792,-2048,-2560,-2816,-2304,-2048,-1536,-1024,-2304,-3840,-4096,-6144,-8448,-9472,-10752
,-7168,-4864,-6144,1280,4096,2816,8704,11008,7936,10240,9472,6656,5888,3072,1792,0,-2048,-2048,
-2048,-3584,-1024,-768,-256,1024,2048,2048,3072,2560,3072,2560,2560,2816,2816,1536,2560,1536,76
8,256,0,-1280,-1024,-2304,-2304,-2560,-3072,-3328,-2560,-3584,-4352,-5120,-5888,-8192,-9216,-10
496,-7936,-5376,-7680,-1024,1792,512,6400,9216,6400,9984,9984,6912,7424,5632,2560,1536,-768,-15
36,-2560,-3840,-2816,-2560,-2816,-256,256,512,2304,3328,3328,4352,4864,4352,3840,3328,2816,1024
,0,-512,-2304,-3584,-3328,-4096,-4352,-3584,-3584,-3072,-1536,-1536,-1280,-1536,-2048,-3328,-46
08,-6400,-7936,-3328,-5120,-5888,256,0,-1024,6656,4864,5120,9472,7936,6144,8192,4864,4096,2816,
1024,0,-768,-2304,-1792,-2816,-2560,-1280,-1280,-512,768,1024,2048,2816,2560,2816,2304,1792,153
6,0,-768,-768,-2304,-3072,-2816,-3328,
-3840,-2304,-2304,-2048,-768,-768,-512,-256,-512,-512,-1024,-1280,-2048,-2304,-2304,-2304,-2048
,-1536,-1024,0,512,1024,1792,2304,2560,2816,2560,2304,1792,1280,768,256,-512,-768,-1024,-1280,-
1280,-1280,-1280,-768,-512,-256,0,512,768,1280,1280,1792,1792,1792,1792,1536,1280,1024,768,256,
0,-256,-768,-1024,-1536,-2048,-2304,-2816,-3328,-3584,-3840,-4096,-3840,-3328,-3072,-2048,-1024
,0,512,1792,2304,3072,3584,3328,3328,3072,2304,1792,768,0,-512,-1024,-1536,-1792,-1792,-1792,-1
536,-1024,-512,-256,0,512,1024,1024,1280,1536,1536,1536,1536,1280,1280,1024,768,512,256,256,0,-
256,-512,-512,-1024,-1280,-1536,-1792,-2816,-3328,-3840,-5376,-5888,-6144,-4608,-5632,-4352,-10
24,-1536,0,4096,2560,4352,6656,5376,5632,6144,3584,3584,2304,512,-512,-1792,-2560,-2816,-3840,-
3328,-3328,-2816,-1536,-1536,-512,512,768,1280,2304,2304,2816,2560,2304,2048,1280,512,256,-512,
-1280,-1536,-1792,-2048,-2304,-2048,-1792,-2048,-1280,-1024,-1024,-256,256,0,256,768,512,512,76
8,0,0,0,-512,-768,-1024};

Int16 battery[SINE_TABLE_SIZE_battery] =
{3072,3072,3840,4608,5376,5888,6144,7168,8192,8192,8704,8192,6912,6400,5120,3328,1792,768,-512,
-2304,-5376,-8192,-9216,-10240,-13568,-16128,-17920,-17152,-17664,-18944,-17152,-8960,-1792,102
4,4608,10752,15360,16128,12800,10752,9728,6400,1280,-2048,-3072,-3584,-4096,-3328,0,4608,8448,1
1264,14336,17920,18432,15616,13056,10240,5888,1792,-1792,-4608,-4352,-3328,-3584,-4096,-3840,-4
352,-5120,-8960,-9728,-11520,-15872,-19200,-19712,-23296,-24832,-18432,-16896,-14336,-6400,512,
3840,9472,14848,18176,17408,17664,16640,12288,7168,4096,0,-3840,-6656,-6656,-6912,-6144,-3328,0
,2304,5120,8448,10240,10752,11264,10752,8704,6656,5120,2816,0,-2304,-4864,-7168,-8704,-11776,-1
5360,-17152,-18944,-22016,-23296,-18944,-10752,-10752,-2304,6144,10240,11776,16384,16896,14848,
10240,8960,3328,-2560,-5376,-6656,-9216,-8960,-5888,-2048,256,4096,8960,11008,11776,12544,12544
,10240,7424,6400,5888,2816,1792,2560,1536,-768,-1792,-3328,-5120,-9472,-12032,-16128,-19712,-22
528,-25344,-22784,-13312,-11520,-3328,
5632,11008,13568,17152,17920,15872,10240,7936,2560,-3584,-6656,-7424,-8960,-7680,-3328,512,4352
,7936,11520,12544,12032,11264,9216,6400,3840,1792,1792,768,512,2304,2560,512,0,-1024,-3584,-742
4,-11008,-15104,-20224,-22784,-25344,-25856,-15616,-8960,-4864,5888,14592,14848,15872,17152,130
56,6144,1792,-1792,-7680,-10240,-8448,-7424,-5376,768,5632,8448,12288,14080,13056,11520,8704,56
32,2816,256,-512,256,768,1280,3072,4352,1792,0,0,-2560,-5888,-8448,-12288,-15360,-17408,-18688,
-18432,-11264,-5632,-2816,2304,7424,8192,7168,7936,6912,3328,1536,1536,0,-1536,0,1024,1280,2560
,4864,5376,5888,6912,6912,7424,7424,7424,7424,7936,7936,6144,5376,4096,2048,-256,-1536,-5120,-5
120,-4608,-8448,-9728,-9728,-13824,-14080,-14592,-16640,-13824,-3584,-768,1024,5888,8960,5120,3
328,3840,1792,-1024,256,2048,1280,2304,5120,4864,3840,4864,3840,2048,2304,2304,2304,4096,5376,6
400,8960,9984,8192,7680,6144,2816,-512,-1792,-6144,-7168,-5888,-7168,-7936,-8704,-11008,-13056,
-14592,-16384,-14592,-3584,256,4096,92
16,12288,7680,5120,2560,-1024,-5120,-4864,-2816,-1536,1280,6144,8448,9216,9728,8448,4864,2560,7
68,-512,0,1280,2816,5376,8192,9216,8192,8448,6912,4352,2048,-768,-5120,-5888,-7680,-11520,-1382
4,-13824,-15872,-17408,-16384,-17152,-12288,-1024,2560,6912,10496,11264,6912,2816,0,-1792,-4864
,-2816,256,2560,4864,7680,8448,7680,5888,3584,1024,0,-256,768,3072,4608,7680,8960,8960,7680,716
8,4608,1792,1024,-1792,-6912,-5376,-5632,-8960,-9216,-10496,-14336,-16128,-16128,-17152,-15872,
0,4608,5376,9472,10496,2560,-2304,-4352,-4608,-5376,-1280,4352,7424,8192,8704,6912,3328,-512,-2
304,-2816,-2304,0,3584,6144,7168,8704,7680,5632,3840,2304,1280,1280,1280,-1536,-2816,-256,-4096
,-9216,-9728,-12544,-18432,-19456,-18176,-18688,-10496,3584,6400,8192,9472,7680,-256,-4864,-537
6,-5120,-4096,1280,6144,8192,8704,7936,5376,1280,-1280,-2816,-2304,-768,1792,5632,7680,7936,819
2,6656,4864,3072,1792,1280,1536,2560,0,-2304,-768,-3328,-8192,-9728,-12032,-16384,-18944,-17408
,-17152,-15104,-256,7424,6912,8448,819
2,2816,-2560,-6144,-5120,-2816,256,4352,8192,8704,7936,6400,3072,0,-1024,-1024,-512,1792,4608,6
400,7424,8960,7424,6656,4608,2560,2048,2816,2048,-1792,-3584,-1792,-6144,-13312,-16640,-16896,-
18432,-18688,-18432,-15616,-8960,3840,6656,7168,5888,2560,-2048,-5376,-6912,-3840,256,3840,6656
,8448,7424,5376,3072,256,-512,-256,0,1536,3328,4608,5120,5376,6400,5376,5120,3840,3072,2560,768
,0,-1280,-3840,-2560,-2560,-7936,-12032,-14080,-16640,-17664,-17664,-17408,-12800,1536,6912,716
8,6656,4608,-256,-5888,-6912,-3328,768,3840,7424,9472,7424,4352,2304,512,-256,256,1280,3328,460
8,5632,5632,5376,5888,4864,4864,3840,3328,3840,3072,1792,0,-2048,-2048,-3328,-7168,-10240,-1356
8,-15360,-15872,-16640,-16384,-12032,2560,7680,6400,6912,4864,-1024,-5888,-5632,-1536,2048,4608
,8192,9472,6912,3584,1792,256,-256,256,2304,4608,5376,5632,5888,5120,5376,4352,4096,3072,2816,3
584,3072,1280,-768,-3072,-2048,-4608,-9984,-13056,-15104,-16128,-17152,-16896,-14592,-12544,153
6,6656,6144,5632,3584,0,-3840,-4096,0,
4608,5888,7680,7936,5632,1792,512,512,256,1024,3328,5888,5888,4864,5120,4352,3072,2816,3840,332
8,2560,2304,3072,1536,-2048,-5632,-3328,-5376,-9216,-11520,-12288,-14336,-15616,-16384,-15360,-
12032,2816,6912,6912,4864,3328,-1280,-5120,-5376,256,4096,5888,7424,7680,4352,512,-512,-512,-76
8,768,3328,5376,5120,4352,4096,3584,3072,3072,3584,2560,2304,2560,2048,0,-3072,-5120,-2816,-614
4,-9216,-11008,-12544,-13824,-16384,-16384,-15360,-7936,3584,6912,7424,5376,2816,-1280,-4352,-3
072,1536,4864,6912,7936,7424,3840,768,-768,-512,-512,1024,3328,5632,5888,5120,4096,2816,1536,17
92,2816,3840,3328,3072,1792,-512,-4864,-6144,-4352,-7680,-12288,-14336,-14848,-15360,-16896,-17
920,-15872,-4352,7168,8704,6656,3584,768,-2816,-6656,-3584,2304,7168,8704,8704,6400,3328,-256,-
1024,-768,256,2048,4864,6656,6144,3840,3840,3840,3840,4352,4352,4096,2560,2048,1024,-768,-5632,
-3072,-3840,-8448,-12800,-13568,-13312,-13824,-18944,-16384,-7680,7168,9216,6656,4864,2560,-204
8,-6656,-5120,1024,5888,7168,7680,7168
,4864,0,-768,256,1280,1280,3072,5632,6400,4096,2304,3584,4352,4096,3584,3328,3840,1792,256,-512
,-3072,-4352,-4096,-6144,-9472,-11520,-15360,-15872,-15872,-16896,-13824,3072,11264,12544,5376,
4096,768,-5120,-8704,-2816,4096,8704,8192,8704,7424,3072,-256,-1024,-256,1280,1280,3840,6400,56
32,4096,2304,3328,3584,3840,3072,3328,3840,2048,1280,0,-3072,-2816,-2560,-5632,-8704,-11520,-14
592,-14080,-16128,-16128,-11008,5120,10752,10240,5376,3840,0,-5376,-8192,-2560,4096,8192,9728,8
960,6656,2304,-1024,-1792,0,1280,2816,5632,6656,6400,3328,2048,2816,2816,2304,2816,3584,4864,33
28,1280,-1024,-3840,-4608,-4096,-6912,-9216,-12032,-14080,-14080,-16384,-18432,-10496,4608,9728
,8448,6656,3584,0,-5120,-5632,1536,6912,9216,10496,8960,6144,1792,-512,0,2048,3072,4608,6400,56
32,4864,2048,2816,3840,3328,4096,5120,4864,3584,256,-1024,-2304,-5632,-5376,-4864,-7936,-9728,-
13056,-15104,-16384,-17664,-17408,-4608,8960,11008,8192,6144,2304,-1280,-6656,-5120,1792,6656,8
960,10240,7424,4352,256,-1792,-512,153
6,2304,4608,4864,5120,3584,2048,2048,2560,2816,4096,4096,4352,3072,768,-1024,-4864,-6144,-4864,
-5888,-7424,-9984,-12544,-15872,-17920,-20224,-15616,1280,8192,10240,7424,4608,1024,-5120,-8448
,-4352,1792,6400,8448,9216,7680,3840,-256,-1536,-256,768,1536,3584,5632,5120,3584,3072,3584,435
2,4352,4096,4352,4096,2304,-256,-2816,-6144,-5632,-2048,-3584,-6144,-8704,-13056,-16896,-19712,
-16128,-512,7168,10240,9472,7168,3584,-3328,-6656,-3840,256,4352,6912,8448,8448,4608,1280,-256,
768,1536,3072,3840,5632,4608,2816,3328,3584,4608,5120,5632,5120,4864,2816,-512,-2304,-5888,-972
8,-7680,-8448,-7680,-9472,-12288,-14592,-17408,-18176,-5376,2560,7936,8704,8192,6656,1792,-3072
,-1280,1792,4864,6912,8960,8960,6912,2816,1280,1792,2560,3328,3328,4096,3328,1024,0,768,1792,40
96,5888,6912,7424,6400,2816,0,-2816,-7680,-7936,-6656,-5632,-6912,-9472,-12544,-15360,-18944,-1
0752,-256,5632,7168,8960,8192,5376,-1536,-1536,0,2816,3840,5888,7424,6912,3328,2048,1536,2048,2
560,2304,3328,3584,2560,768,1536,2048,
3072,4864,6400,6656,6656,4096,1792,0,-4864,-9216,-9984,-10752,-11264,-11520,-12800,-13312,-1612
8,-12032,-3072,256,2560,5120,7424,6912,2560,1024,2560,2816,3072,3072,4608,5376,4352,3328,3328,3
584,3328,2560,3072,3584,2560,2048,1792,2048,1280,1024,2304,3328,4096,4608,4608,4096,1536,-3584,
-9216,-12288,-14336,-15104,-15872,-17152,-16640,-15104,-6400,-512,2560,6656,8192,8704,6400,2816
,1792,1024,256,1024,2304,3328,4864,5376,5888,5888,5376,5120,4608,3584,2560,3328,3072,2560,2304,
3328,4352,3840,4352,5376,4864,4608,2816,-256,-6400,-14080,-17664,-19200,-22784,-24320,-23552,-2
0480,-9984,-4352,0,6400,10496,12288,11264,7168,6144,3840,0,-1792,-2304,-1792,-512,256,2816,5376
,5888,6656,7680,8192,6912,4864,4864,4864,2816,1536,1280,1536,1280,768,1280,2304,2304,1280,-512,
-4864,-8192,-10240,-14080,-16640,-18432,-18944,-13568,-9728,-6656,-1280,3328,6912,9216,9216,104
96,9984,7680,6144,4352,2560,1280,0,0,256,256,1024,2560,4352,5120,5376,6912,7424,6400,5376,4352,
3072,1280,-256,-512,-512,-512,-1024,-1
536,-512,-256,-768,-2048,-3840,-5632,-6656,-7936,-7680,-5376,-3328,-1280,-256,-512,0,512,256,0,
-768,-1536,-1024,-256,256,768,768,1024,1536,1792,2048,1792,1280,1536,1792,2304,2816,2304,2048,1
280,768,512,256,256,512,512,1024,1024,0,-1280,-2304,-3328,-4096,-5888,-6656,-6144,-5376,-4352,-
3584,-3072,-2048,-1024,-512,256,512,768,1280,1280,1536,1536,1280,1280,1280,1280,1792,2048,1792,
1536,1792,2048,2304,2560,2048,1792,2048,2048,2048,2304,1792,768,1280,256,0,-512,-2048,-2304,-35
84,-4352,-4864,-5888,-5888,-5120,-4864,-4352,-4096,-3072,-2048,-1024,0,768,1280,2304,2560,2816,
3328,3328,3584,3328,3072,2560,2304,1792,1280,512,256,0,-256,-512,-768,-768,-512,-256,0,0,0,0,0,
0,-512,-1280,-1280,-2048,-2560,-3328,-4352,-5888,-6656,-5376,-3328,-2560,-2304,-2304,-1280,0,10
24,1536,1536,1536,2304,2816,2304,2304,2048,2048,2048,1536,768,512,512,512,256,256,256,256,256,2
56,256,512,1024,1280,1792,1280,1280,1024,256,0,-256,-768,-768,-1536,-2560,-4608,-6144,-7680,-84
48,-5888,-3072,-2048,-1024,-1024,0,204
8,2048,1536,768,0,512,768,768,768,512,512,512,768,1024,512,256,0,256,1024,768,1024,1280,1536,20
48,1792,1536,2048,2048,2048,2048,1280,1280,768,-256,-768,-1280,-1536,-1280,-2560,-5120,-7680,-9
216,-9984,-8448,-3328,-512,512,2304,1536,2560,2816,256,-256,-768,-1024,-256,-256,-256,0,768,179
2,1792,1536,1024,768,1024,256,-256,-256,0,512,1280,1536,1792,2560,2816,3072,2304,1792,-512,-256
,-512,-1024,-1536,-1792,-1536,-1024,-768,-1024,-1536,-1280,-768,-256,-256,-256,-256,256,768,128
0,1536,1536,1536,2048,2048,2304,2048,1280,0,-512,-1536,-2560,-3840,-5120,-6400,-7168,-7168,-640
0,-4608,-3328,-1792,-768,256,1536,2560,3328,3840,4096,3840,3584,3072,2560,2048,1792,1280,768,51
2,256,256,256,512,768,1024,1280,1792,2304,2560,2560,2560,2560,2304,1792,1280,512,256,0,-256,-25
6,-512,-1024,-1792,-2816,-3328,-4096,-4608,-5376,-6656,-8448,-9728,-10496,-10496,-8704,-5376,-1
280,1536,2816,3072,3328,4352,5376,5888,5120,3840,2048,512,256,256,256,0,-256,-256,0,768,1792,28
16,3072,3584,3584,3584,3840,4096,3328,
2304,1536,1024,512,0,-256,-512,-512,0,256,768,512,-256,-1536,-3072,-4096,-4864,-5376,-6656,-844
8,-10496,-12288,-13056,-12032,-7936,-1536,4608,8192,8192,6656,6656,7680,8192,6912,4096,768,-256
0,-5120,-5376,-4096,-2304,-1280,-768,0,2048,4096,6144,7424,7424,6400,4864,3328,2304,512,-1280,-
3584,-5120,-5120,-4096,-2048,-256,1280,3072,4864,6400,6912,5888,3328,256,-2816,-5888,-8192,-998
4,-11008,-12032,-13056,-14592,-15616,-15104,-11520,-5120,2560,8192,9984,8448,6400,6400,7168,768
0,6400,3328,-256,-3584,-5120,-4096,-2048,0,1024,1280,1280,3072,5376,7680,8448,7424,5632,4096,28
16,1792,512,-1024,-3328,-4608,-4352,-3072,-512,1024,2304,3072,3840,4352,4864,4096,2048,-256,-33
28,-6144,-8704,-10496,-11520,-12544,-13568,-14848,-16128,-16384,-13056,-6400,1792,8960,12032,11
520,9472,8960,9216,9472,8448,5120,768,-3584,-5888,-5888,-4608,-2560,-1536,-768,0,1536,4096,6656
,8192,7936,6912,5376,4096,2304,768,-768,-2816,-4352,-4608,-3584,-1792,0,2048,3584,4608,5376,563
2,5120,3328,768,-2048,-5120,-7680,-921
6,-10496,-10752,-11520,-12544,-13568,-13568,-10752,-5376,768,5632,7936,8192,8192,8448,9216,9728
,9728,8960,7168,4864,2816,1536,512,0,-256,-512,-768,-1024,-1280,-1280,-1024,-768,-256,0,1024,20
48,3072,3584,4096,4096,3840,2816,1792,256,-768,-2304,-3072,-3584,-4096,-4608,-4864,-5632,-6400,
-7168,-7680,-8448,-8960,-9728,-10496,-12032,-13312,-14336,-12800,-7936,-1280,4352,7424,8192,844
8,9472,11008,12544,13056,12032,9984,6912,3840,1536,256,256,0,-256,-768,-1024,-1280,-1024,-256,0
,1280,2560,3584,4096,4352,4352,4352,4352,4352,3584,2304,256,-1792,-3840,-5120,-5376,-4608,-4096
,-3840,-3840,-4096,-4352,-4608,-4864,-5888,-7936,-10240,-13056,-15616,-17152,-16384,-12288,-563
2,512,4352,5888,6144,7168,9216,11776,13056,12288,10240,7424,4608,3072,2560,2816,3072,2816,2048,
1536,1536,1792,2304,3072,3584,4352,4608,4352,4352,4096,3840,3328,2560,1280,0,-1280,-2304,-3584,
-4352,-4864,-4096,-3328,-2048,-1024,-1024,-1792,-3584,-5120,-6656,-7168,-8448,-9984,-12544,-156
16,-17920,-16896,-11776,-3328,3584,691
2,6656,6656,9216,13568,17664,18944,16128,11264,6656,3840,2816,2560,1280,-768,-3584,-5120,-4864,
-3072,-1024,512,1280,1536,2048,3328,4608,5888,6144,5376,4096,2560,1280,0,-2048,-3840,-4864,-537
6,-4608,-3328,-3072,-3584,-4864,-5632,-5120,-3584,-2048,-2304,-4096,-6656,-8960,-10240,-10496,-
10496,-8704,-4096,1792,7168,10240,11776,13568,15104,16384,16384,14848,12288,8448,4608,1024,-102
4,-2048,-2816,-3328,-3584,-3584,-2816,-1024,768,2816,4352,5376,5888,5888,5888,5120,4864,3840,25
60,512,-1536,-4096,-5376,-5376,-4608,-3328,-3328,-3840,-4352,-4096,-3328,-2560,-2560,-2816,-435
2,-6400,-8960,-11520,-13312,-15360,-16128,-12288,-3328,4864,8448,9216,12800,18688,22784,20480,1
5616,11264,8960,6656,2816,-1280,-4608,-5632,-4864,-3584,-1792,-256,2048,5120,7680,8704,8960,896
0,9216,8192,4864,1024,-1280,-2560,-3072,-4864,-6400,-5888,-3072,0,1536,1792,2560,3584,3840,1792
,-768,-3840,-6400,-8960,-12032,-15616,-18688,-19200,-18432,-17920,-18944,-15872,-6400,4864,9984
,10240,12288,19456,23808,20992,13312,9
472,8960,6400,0,-5888,-7936,-6656,-5632,-5632,-4352,-1280,2816,6912,9728,10752,10752,11264,1203
2,10240,6144,1792,-256,-1280,-3840,-7168,-8704,-6656,-3584,-1792,-1024,512,3584,6144,5376,2304,
0,-768,-3584,-8192,-12032,-13312,-14080,-15872,-17408,-16128,-13824,-12288,-10496,-3584,6656,13
312,14080,15104,20736,23296,18432,11520,9216,7936,2816,-4352,-7424,-6656,-6400,-7424,-6144,-204
8,1536,3840,6144,9216,11008,10496,9472,8448,6656,3840,768,-1536,-2816,-3840,-4096,-3584,-2304,-
256,2304,3840,3584,3072,3584,3072,0,-4352,-6912,-8192,-10496,-13568,-15104,-15104,-15616,-16128
,-15616,-14080,-12800,-12032,-7168,1536,8448,8960,11008,16896,19968,14848,9984,9728,8960,2048,-
4096,-4608,-3328,-5888,-7168,-3840,512,2304,4352,7936,10240,10752,10496,9728,7680,4864,2816,512
,-2560,-4608,-4096,-3072,-3072,-2560,0,3328,4096,2816,2560,4864,3840,-768,-4352,-3840,-4864,-99
84,-13312,-12288,-12544,-14848,-16128,-14848,-13568,-11776,-11008,-5632,1792,8192,9216,11776,16
384,17152,12544,10496,9728,6912,512,-1
536,-1536,-2560,-5120,-3328,0,1792,2304,5120,7936,8448,7680,7936,6656,4608,2304,1024,-768,-2048
,-2304,-1792,-1536,-256,1536,2816,3584,4352,5120,3328,2304,1536,-256,-4608,-6656,-6912,-9216,-1
2288,-12288,-11776,-13056,-13056,-12544,-12544,-11520,-9728,-9984,-5888,1792,7168,5376,9984,166
40,14592,9472,11520,11776,5376,1024,2560,768,-2816,-3328,-256,256,-256,1536,4864,4608,4352,5376
,5376,2816,2304,2048,256,-1280,-512,-256,-256,256,2048,3584,3840,4352,5120,4608,1792,1280,1024,
-2560,-6144,-6144,-7168,-10496,-11776,-11008,-11776,-13312,-12032,-11008,-11520,-10752,-8704,-8
704,-9472,-7936,-2304,2048,-512,1280,8448,6912,1792,5888,8192,1792,0,2816,768,-4096,-2304,-1024
,-3072,-3840,-1024,-512,-512,0,1536,1792,2304,2048,3328,3328,3072,2048,2560,2048,1024,512,1024,
256,0,256,1280,1280,2048,2560,3072,3072,2560,1792,512,-1024,-1792,-3584,-5632,-7680,-8448,-9472
,-10752,-12032,-12544,-11520,-4864,-2304,-4096,768,8192,4352,3328,8960,8960,2304,3840,5376,1024
,-2560,0,-1024,-3584,-3584,-1536,-2048
,-1792,-1024,0,512,1280,1536,3072,3328,2816,2560,3072,2560,1536,1536,1536,768,256,1024,1024,102
4,1792,2560,2560,2560,2304,1536,0,-768,-2048,-2816,-5120,-7168,-7936,-8192,-10496,-11776,-11776
,-10240,-4608,-4864,-4096,1792,5632,1280,5376,9216,5632,2816,7168,3072,-1024,0,0,-5120,-3328,-1
792,-4096,-3072,512,-1280,-256,2816,2816,1024,4352,4352,1536,2560,3584,512,768,2560,0,-256,1536
,1024,0,2560,3072,2048,3584,5376,2816,2816,3328,512,-2048,-1280,-4352,-7936,-7936,-8448,-11776,
-12288,-12288,-11520,-4608,-5632,-4608,3328,5120,1536,7680,9984,5632,5888,8192,3584,1792,1536,-
512,-2560,-2560,-3328,-3328,-2816,-2560,-1792,0,0,512,1792,2048,1792,2816,2816,2304,3072,3072,2
304,2816,2816,2048,2048,2048,1280,1536,1024,768,512,256,-768,-512,-1536,-2560,-3328,-3840,-5888
,-6912,-8448,-9728,-10752,-11520,-12544,-9216,-5888,-7680,-2560,2304,1280,3584,9472,6912,6912,9
472,6912,3840,4864,1792,-1280,-1024,-2560,-5120,-3840,-3840,-4352,-2816,-1280,-1024,512,1792,20
48,2816,3840,3584,3840,4352,3840,3584,
3840,3072,2816,2560,1792,1536,1280,512,-256,-256,-1024,-2048,-2560,-2816,-3328,-4096,-4608,-537
6,-6912,-7680,-8704,-9472,-10752,-9728,-5120,-6656,-4608,768,1792,768,7168,7168,5376,7680,8448,
3840,4352,3584,0,-1280,-1024,-3840,-3840,-2816,-3328,-3072,-1024,-1024,0,1280,1792,1792,2816,30
72,3072,3328,3584,3072,3584,3328,3072,2816,2560,2048,2048,1280,512,256,0,-1280,-2048,-2560,-281
6,-3840,-4608,-5120,-5632,-7168,-7424,-8192,-9472,-9728,-8192,-6144,-6912,-3840,-256,-768,1024,
5632,4096,4864,7936,5888,4352,5888,3072,1024,1280,-512,-2048,-1536,-2560,-2560,-1536,-1792,-102
4,-256,0,512,1280,1280,1792,2304,2048,2560,3072,2816,3328,3840,3840,3840,4096,3584,3328,3328,20
48,1024,0,-1280,-2816,-3584,-5376,-6400,-7168,-8448,-8960,-9216,-9472,-9728,-9472,-8704,-5632,-
5376};

Int16 door[SINE_TABLE_SIZE_door] =
{-256,0,256,512,768,1024,1280,1536,1536,1792,1792,1792,1792,1792,1536,1536,1280,1280,1024,768,5
12,512,256,0,-256,-256,-512,-768,-768,-1024,-1024,-1024,-1280,-1280,-1280,-1280,-1536,-1536,-17
92,-2048,-2048,-2304,-2560,-2560,-2304,-2048,-1792,-1280,-768,-256,0,512,1024,1536,1792,2048,23
04,2560,2816,2816,2816,2816,2816,2816,2816,2560,2560,2304,1792,1536,1280,1024,512,0,0,-256,-768
,-1024,-1280,-1280,-1536,-1536,-1536,-1792,-1792,-1792,-1792,-1792,-2048,-2048,-2304,-2304,-256
0,-2560,-2560,-2304,-1792,-1280,-512,0,256,1024,1536,1792,2304,2560,2560,2816,2816,3072,3072,30
72,3072,3072,2816,2816,2560,2304,1792,1536,1280,768,512,0,-256,-768,-1024,-1280,-1536,-1792,-17
92,-1792,-1792,-1792,-1536,-1536,-1536,-1536,-1536,-1536,-1536,-1792,-2048,-2048,-2048,-1792,-1
280,-768,-256,256,768,1536,1792,2304,2560,2560,2816,2816,2816,2816,2816,2816,2816,2816,2560,256
0,2304,2048,1792,1536,1024,768,256,0,-256,-768,-1024,-1280,-1536,-1792,-1792,-1536,-1536,-1536,
-1280,-1280,-1280,-1280,-1280,-1280,-1
536,-1792,-2048,-2304,-2304,-2048,-1792,-1536,-768,-256,256,768,1280,1536,1792,2048,2048,2048,2
048,2304,2304,2304,2304,2560,2304,2304,2304,2048,1792,1536,1280,768,512,256,-256,-512,-768,-102
4,-1280,-1536,-1536,-1536,-1536,-1536,-1280,-1280,-1280,-1536,-1536,-1792,-1792,-2304,-2560,-28
16,-2816,-2560,-2304,-1792,-1280,-512,0,512,1024,1536,1792,2048,2304,2304,2560,2560,2816,2816,3
072,3072,3072,3072,2816,2560,2304,1792,1280,1024,512,0,-512,-768,-1280,-1792,-2048,-2304,-2304,
-2304,-2304,-2304,-2304,-2304,-2304,-2304,-2560,-2560,-2560,-2816,-3072,-3072,-2816,-2560,-2304
,-1792,-1024,0,256,1024,1792,2304,2560,2816,3072,3072,3328,3328,3328,3328,3328,3328,3072,2816,2
560,2304,1792,1280,768,256,-256,-1024,-1536,-2048,-2560,-2816,-3072,-3328,-3328,-3328,-3072,-30
72,-2816,-2560,-2560,-2304,-2304,-2304,-2304,-2304,-2304,-2304,-1792,-1792,-1280,-512,0,256,768
,1280,1792,1792,2048,2048,2304,2304,2304,2304,2304,2304,2304,2304,2048,1792,1792,1536,1024,768,
512,0,-256,-512,-768,-1024,-1024,-1024
,-1024,-1024,-1024,-1024,-768,-768,-256,-1024,-1024,-1024,-2560,-3072,-3072,-4096,-5120,-4352,-
4096,-3840,-2816,-1536,-512,768,1280,2816,3840,4096,4352,3840,3584,3072,2560,2048,1792,1536,128
0,1024,1024,512,768,512,768,768,256,-768,-512,-512,-1280,-1024,-1024,-1280,-2048,-1536,-768,-76
8,-2048,-1792,-2304,-3840,-6400,-7424,-9728,-10240,-8960,-9984,-7936,-5888,-3840,-1024,1280,435
2,6144,7680,8704,9216,8960,7680,6144,4608,2560,1024,-256,-2048,-2304,-2560,-2048,-1280,0,1280,2
816,4096,5632,6656,7168,6144,6656,5632,3072,1280,0,-1536,-3840,-5120,-5120,-6144,-6912,-7680,-7
680,-7680,-10240,-10496,-12544,-12288,-7936,-9472,-6400,-2304,-512,2816,5120,6912,9728,9216,896
0,8960,6912,5120,2560,1280,-256,-2048,-2560,-2560,-2560,-1024,0,2560,4608,5888,8960,10240,10496
,11008,9984,7936,6144,2816,768,-2048,-5376,-6656,-7168,-8448,-8192,-7168,-6144,-7936,-6656,-691
2,-9472,-10496,-14080,-11520,-7424,-9984,-4608,768,1024,4608,6912,9472,9472,7424,8704,6656,2816
,1280,0,-2304,-4096,-3328,-2560,-2560,
-1280,1536,2816,4352,7168,8448,9472,10240,10496,9472,7424,5376,4096,256,-1792,-3584,-5632,-6656
,-5120,-4864,-3840,-2048,0,768,1792,768,-1536,-4096,-7680,-11776,-13056,-10240,-8448,-6144,-435
2,-2048,768,4864,7168,8192,8448,7680,6400,4864,2048,0,-1792,-2816,-3072,-2816,-2560,-1536,-512,
512,1280,2304,2816,4096,4864,4864,4864,4352,4096,3328,2816,1280,0,-768,-1024,-1024,-1280,-1024,
0,1280,1792,256,-2560,-7168,-11520,-15104,-16128,-12800,-10240,-7936,-5632,-2304,1536,6144,9216
,10496,9984,8704,6656,4608,1792,-1024,-3840,-5120,-4608,-3584,-2304,-1792,-512,768,2560,4608,64
00,7424,7936,7424,6400,5120,3840,2560,1024,-256,-1792,-3072,-3584,-3328,-2560,-768,1024,2816,30
72,1024,-2816,-8448,-13568,-17152,-17920,-14592,-11520,-8448,-6144,-1792,2560,8192,11520,12800,
11776,9984,7936,5376,2304,-1280,-4608,-6144,-5888,-4608,-3072,-1792,-512,768,2048,4352,6400,793
6,8192,7680,6400,4864,4096,3584,2048,0,-2304,-4096,-4864,-3840,-2560,-1792,-768,0,256,-256,-256
0,-6144,-11264,-15616,-18176,-15872,-1
1776,-7680,-5632,-2816,0,4864,9472,12032,11776,9728,6912,4608,2816,256,-2304,-4352,-5632,-5120,
-3584,-1792,-256,512,1536,3072,4608,6400,6912,6912,6400,5376,4352,3584,2304,768,-768,-2048,-332
8,-3328,-2560,-1024,512,2304,2816,1536,-768,-4608,-8960,-13312,-17152,-18944,-16896,-13568,-896
0,-5120,-1536,768,4608,8448,11264,12288,10240,7168,3584,1024,-768,-2048,-3328,-4096,-4352,-3584
,-2048,-512,1024,2304,3840,5120,6656,7680,8192,7680,6400,5376,3840,2048,256,-1024,-3072,-4096,-
4352,-3328,-1536,0,1280,1024,-256,-3328,-7168,-11264,-14336,-17152,-16384,-13568,-9472,-5120,-1
024,2048,4608,7936,9984,11264,11008,8704,4864,1280,-1280,-2816,-3072,-3072,-2816,-2816,-2560,-1
536,0,1792,3840,5376,6144,6400,6400,6400,6144,5632,4864,2816,256,-1536,-3072,-4352,-4096,-3072,
-1792,-512,512,768,0,-1536,-4864,-9216,-13568,-16896,-17152,-14592,-10496,-5120,-768,2048,4096,
6656,9472,11520,11776,10240,6656,2304,-1024,-3328,-4096,-3584,-3072,-2816,-2304,-1536,0,1536,35
84,4864,5888,6144,5888,5888,6144,5632,
5120,4096,2304,0,-1536,-3328,-4096,-4096,-3328,-2560,-1280,-256,-256,-1024,-3072,-6656,-10752,-
13824,-16896,-16384,-13824,-8704,-3840,0,2304,4864,7168,9728,11264,11264,9216,5632,1536,-1792,-
3840,-4096,-3584,-2816,-2304,-1792,-768,256,2304,3840,5376,5632,5888,5632,5888,5888,5632,4864,3
584,1792,0,-2048,-3328,-4096,-3840,-3072,-2304,-1280,-512,-256,-1024,-2816,-6144,-10240,-13568,
-16640,-15872,-12800,-8192,-3328,1024,3584,5888,7936,9728,11008,10752,8704,4864,768,-2304,-4352
,-4608,-3840,-3072,-2304,-1792,-1024,0,2048,3584,5120,5888,6144,6144,6144,5888,5120,4608,3072,1
280,-256,-1792,-3584,-4096,-3840,-3328,-2048,-1024,-768,-1024,-2816,-5888,-9216,-12544,-15872,-
16896,-14592,-10752,-5888,-512,3328,6144,7936,8960,9472,10240,9472,7168,4096,256,-3072,-5120,-5
376,-4608,-2816,-1024,0,768,1536,2560,3584,5120,5888,6144,5888,4864,4352,3584,3072,2304,1792,25
6,-1024,-2560,-3584,-3584,-2816,-1024,512,1280,768,-768,-4352,-8192,-11776,-14592,-15872,-13824
,-11520,-7680,-3584,0,2560,5120,7168,8
704,9984,9984,8704,6400,3328,0,-2560,-3328,-3584,-2304,-1024,-512,-512,-768,-768,-256,1280,3328
,5376,6656,6656,6144,5120,4352,4096,3584,2560,1024,-1024,-3072,-4352,-4352,-3072,-1024,256,256,
-1024,-4608,-8192,-11776,-14592,-15360,-13056,-9728,-5376,-1280,1792,3840,5632,6912,7936,8704,8
704,7168,5120,2048,-768,-2816,-3840,-3584,-2304,-1024,0,512,256,256,512,1536,2816,4352,5376,563
2,5632,5120,4608,4352,4096,3584,2304,256,-1536,-3072,-4096,-3840,-2560,-1024,-256,-512,-2816,-6
400,-10240,-13824,-16128,-15360,-12288,-8448,-3840,0,2304,4096,5632,6656,7936,8960,8704,7168,40
96,256,-2304,-4096,-3840,-2560,-1280,0,0,0,0,768,2048,3840,5632,6656,6656,5888,4864,3840,3072,2
560,2304,1280,-256,-2816,-4352,-4864,-4096,-1792,0,1024,512,-1792,-5376,-9216,-12800,-15360,-15
360,-13312,-9472,-5120,-512,1792,3584,5120,6656,8448,9728,9472,7680,4608,1280,-1536,-3328,-3584
,-3072,-2048,-768,0,256,256,512,1280,2816,4864,6656,7168,6912,5632,4352,3328,2816,2048,1024,-51
2,-2560,-4096,-4608,-3840,-2304,-256,7
68,768,-1024,-4352,-8448,-12544,-15104,-15616,-13312,-9472,-4864,-256,2816,4864,6656,7936,8704,
9216,8704,6912,4352,1024,-2048,-4352,-4864,-3840,-2048,-256,1024,1536,1792,2304,3328,4352,5888,
6656,6400,5632,4608,3584,2816,2560,1280,0,-1792,-3584,-4608,-3840,-2304,0,1792,2560,1280,-1536,
-5376,-8960,-12288,-14336,-15360,-14080,-11264,-7168,-2816,1280,4864,7168,8960,9728,9728,8704,7
168,4608,1792,-1024,-3072,-4352,-4096,-3072,-1536,256,1536,2304,2560,3072,3584,4608,5376,5888,5
888,5120,4352,3328,2816,2048,1280,0,-1536,-2816,-3584,-2816,-1280,768,2048,2560,768,-2304,-6656
,-11264,-14592,-16640,-16128,-13312,-8704,-3584,1024,3840,5376,6400,7424,8192,8960,8960,7680,48
64,1280,-1792,-4096,-4608,-3328,-1280,256,1280,1024,0,-1024,-1280,0,2048,4608,6400,7168,6912,58
88,4864,4608,4096,3328,1792,-512,-3072,-4608,-4352,-2816,-512,1280,1792,-256,-4096,-9216,-13568
,-16640,-16896,-14336,-9472,-4352,256,3840,5632,6656,7424,8192,8704,8960,7680,4864,1280,-2048,-
4608,-5120,-3840,-1792,256,1536,1280,2
56,-768,-1024,0,2304,5120,6912,7680,6656,5376,4096,3328,3072,2560,1024,-512,-2816,-4352,-4352,-
2816,-256,1536,2816,1536,-1280,-6144,-10752,-14848,-17408,-17664,-14592,-9984,-4864,0,3584,6144
,8192,9728,10496,10240,8960,6144,2048,-1536,-4352,-5888,-5120,-3072,-768,768,1792,2304,2304,256
0,3328,4864,6144,7168,6912,5376,3584,1792,768,512,768,512,0,-1024,-1792,-1024,256,2560,4096,384
0,2048,-1280,-5632,-10496,-14080,-16896,-18944,-18944,-15872,-11008,-4864,1024,6144,8960,10240,
10496,9984,9216,7424,4864,1536,-1792,-4608,-6144,-5632,-3840,-1280,768,2048,2560,2560,2816,4096
,5376,6912,7680,6656,4608,2304,768,0,0,0,0,-768,-1280,-1536,0,1792,3840,5120,4096,2048,-1280,-5
632,-9984,-13824,-17152,-19456,-18944,-15616,-10240,-4096,1792,6400,8960,9984,10496,10240,9472,
7424,4608,1280,-2048,-4864,-6144,-5120,-3328,-1024,512,1536,2048,2304,2816,4096,5632,6656,7168,
6144,4096,2048,1280,512,512,768,512,-256,-1024,-768,0,1536,2816,3584,2560,0,-3072,-6656,-10752,
-14080,-17152,-19200,-18688,-14592,-79
36,-1280,4864,8960,11264,11520,11264,10752,9984,7424,4096,-512,-5120,-8704,-9728,-7680,-4096,-2
56,2304,3584,4096,5120,6912,9216,11008,11264,9216,5632,1280,-1536,-3072,-3328,-2560,-1792,-1792
,-2048,-1280,512,3328,5888,7424,7168,4608,256,-4352,-8704,-12288,-15360,-17920,-19200,-17664,-1
2800,-5376,1792,7936,11520,12544,11008,8960,7168,5376,3072,256,-3072,-6144,-7936,-7424,-4608,-7
68,2560,4608,5120,4608,4096,3840,4864,5632,5632,4352,2304,256,-768,-512,512,1024,1536,768,0,0,1
280,3072,4352,4352,2816,0,-3840,-7168,-10240,-12288,-13824,-15616,-17152,-15872,-11776,-4864,17
92,7424,11008,11776,10240,7936,5888,4608,2816,512,-2304,-5120,-6912,-6912,-4608,-1024,2560,4608
,5376,4608,3840,3328,3840,5120,5376,4352,2816,512,-256,-256,512,1280,1792,1280,256,0,1024,2560,
3840,4352,3072,768,-1792,-4864,-7424,-9984,-12288,-14848,-17664,-17920,-14080,-6656,768,6656,99
84,11008,9984,8960,8448,7680,5888,2560,-1536,-5120,-7424,-7424,-4608,-1024,1536,2816,3072,2560,
2304,3072,4608,5888,5632,3840,1792,0,-
256,512,1536,2304,1536,512,0,-256,512,2304,3328,3072,1280,-1024,-4096,-7168,-9728,-11776,-13056
,-14592,-15616,-15616,-13056,-6400,1280,7424,10752,11520,9728,7424,5632,4608,2816,256,-3072,-58
88,-7168,-6400,-3840,-768,1536,3072,4096,4352,4608,4864,5120,5376,4352,2816,1024,0,-768,-768,0,
256,512,1280,2304,3072,3584,4096,3840,2816,1280,-256,-2560,-4864,-6144,-6400,-5632,-3328,256,58
88,9216,7424,2816,-768,-2304,-1536,0,1024,1024,0,0,512,1536,1792,1280,256,-256,0,512,1536,2048,
1280,1280,1536,2304,3328,3584,3840,3328,2560,2304,2304,2560,2048,1792,768,-256,-1792,-2816,-332
8,-3840,-5376,-6912,-7168,-6400,-6656,-6912,-7424,-6656,-5888,-3840,512,5632,6656,3328,-1024,-3
072,-3072,-1792,0,768,0,-768,0,1792,2560,1536,512,-256,-512,0,1280,2048,1536,256,256,1536,2816,
3584,3072,2560,1792,1536,1536,2048,2560,1792,1024,256,-512,-1536,-2816,-3584,-4352,-5632,-6912,
-6912,-6144,-6144,-7168,-7936,-7168,-6144,-4352,-256,5376,7680,4096,-1024,-3072,-2048,-256,0,0,
-512,-256,512,2304,2560,1280,-256,-512
,256,1024,1280,1280,768,768,1280,2048,3072,3072,2816,2816,2816,2304,1792,2048,2304,2048,1280,51
2,-256,-1792,-3328,-3840,-3840,-4096,-5120,-5632,-5888,-6656,-7168,-6912,-6656,-6400,-5376,-230
4,3072,6656,5632,768,-2048,-2304,-1280,-768,-768,-1024,-768,0,1792,3072,2304,512,-256,0,512,768
,768,768,768,768,1536,2304,2816,2816,2816,3072,3072,2560,2048,1792,2048,2304,2048,1536,512,-102
4,-2560,-3072,-3328,-4352,-5632,-6144,-6400,-6912,-7680,-7680,-7424,-6656,-4864,-1024,4096,7424
,5632,1024,-1536,-1536,-512,-512,-768,-1536,-1536,-768,1280,2560,1792,512,0,256,1024,1280,1280,
768,256,512,1024,2048,2560,2560,2560,3328,3840,3328,2560,2048,2048,2048,1792,1280,256,-1024,-28
16,-3584,-3328,-3584,-4864,-6144,-6144,-6144,-6400,-6912,-6912,-6400,-4864,-1280,3840,7424,5888
,1024,-1536,-1536,-512,-256,-768,-1536,-1536,-512,1280,2560,1792,512,-256,0,1024,1280,1280,768,
512,512,1024,2048,2560,2304,2304,3072,3840,3840,2816,2048,2048,2048,2048,1536,768,-256,-2048,-3
328,-3328,-3072,-4352,-5632,-6144,-614
4,-6656,-7936,-8192,-6912,-4864,-2304,1792,6144,6400,2560,-1280,-1792,-768,-1024,-2048,-2304,-1
536,-256,512,2304,3072,2048,512,256,1024,1280,256,-256,0,512,768,1024,1792,2816,2816,2816,3584,
4352,3840,2560,1792,1792,1536,1280,1024,1024,0,-1280,-2560,-2560,-2560,-4096,-5632,-5632,-5120,
-5632,-6912,-7424,-6912,-5888,-3840,512,5376,6400,3072,-768,-1280,0,0,-1536,-2816,-1792,-512,0,
1536,2560,2048,768,256,1280,1792,1024,0,0,768,768,768,1536,2304,2304,2304,3072,4096,3840,2816,1
792,1792,1792,1536,1280,1280,768,-256,-1536,-2048,-2304,-3072,-4608,-5376,-5888,-6144,-7168,-79
36,-8192,-7680,-6656,-3584,1024,5376,4864,1024,-1280,-512,512,-256,-2560,-3328,-3072,-2048,-102
4,512,1280,512,-256,512,1792,2048,1024,512,512,768,768,768,1024,1280,1024,1536,2304,3328,3328,2
816,2560,2816,2816,2560,2560,2304,1280,0,-1024,-1536,-2304,-3328,-4608,-5376,-5632,-5888,-6912,
-7424,-6912,-6144,-5632,-3584,256,4352,4608,1024,-1280,0,2048,1024,-1536,-3328,-1792,0,512,0,0,
256,1024,1024,1024,1024,1280,768,768,7
68,1536,1792,1280,1024,1536,2560,2816,2560,2560,2816,2816,2560,2304,2048,2048,2048,1792,1280,25
6,-768,-1536,-2048,-2560,-4096,-5376,-6400,-6400,-6144,-6400,-6656,-6656,-5376,-1536,3072,5376,
4352,1536,512,1792,2560,512,-2048,-3072,-1792,-256,-256,-512,-256,512,1280,1792,1536,1536,1280,
1280,1280,1024,1024,768,768,1024,1280,2048,2560,3072,3072,3328,3072,2560,2304,1792,1792,1536,10
24,512,0,-1024,-1536,-2048,-2560,-3840,-4864,-5632,-5888,-6144,-6400,-6912,-6656,-5120,-1280,23
04,4608,3584,1536,1536,2816,2816,256,-1792,-2560,-1536,-768,-1024,-1280,-768,512,1280,2048,2048
,2048,2048,2048,1792,1280,1024,768,768,1024,1024,1536,2048,2560,2816,2816,2816,2304,2304,2048,2
048,1792,1280,768,256,-512,-1280,-2048,-2560,-3328,-4608,-5632,-6400,-6912,-7168,-7424,-7168,-5
888,-2560,1792,4352,4352,2816,2816,3840,3840,1792,-768,-2048,-2304,-2048,-2048,-2304,-1792,-512
,768,2048,2816,3072,3328,3584,2816,2048,1024,768,256,0,-256,0,512,1536,2304,2816,3328,3584,3072
,2816,2304,2048,1792,1536,512,-256,-15
36,-2048,-2816,-3328,-4352,-5376,-6144,-6144,-6400,-6912,-7424,-7168,-6144,-3840,-256,2048,2304
,1536,1536,2560,3072,1536,0,-1536,-2560,-2816,-2816,-2304,-1792,-1280,-512,768,2048,2816,3072,3
072,2816,2304,1792,1024,256,-256,-512,-512,0,512,1280,2304,3072,3328,3584,3840,3584,3072,2816,2
048,1280,256,-256,-1024,-2048,-2560,-3584,-4096,-4864,-5376,-5888,-6400,-6912,-7168,-6400,-4864
,-1536,1280,2560,2048,2048,3072,4096,3328,1536,0,-1280,-1792,-2560,-2816,-2816,-2816,-2048,-512
,768,1536,2304,2816,3328,3072,2816,2304,1536,768,0,-256,-256,0,256,1024,2304,3328,3584,3840,409
6,4096,3840,3328,2816,1792,1024,0,-1024,-2048,-2560,-3328,-4352,-5120,-5376,-5888,-6656,-7168,-
7424,-7168,-6400,-4096,-1280,512,1024,1280,2304,3328,3584,2560,1280,256,-512,-1280,-2048,-2304,
-2560,-2304,-1280,-512,256,1280,2304,2816,3328,3328,2816,2560,2048,1280,512,256,0,0,512,1024,20
48,2816,3328,3584,3840,3840,3584,3328,2816,1792,768,-256,-1024,-1792,-2560,-3584,-4096,-4864,-5
376,-5632,-5888,-5888,-6144,-5376,-409
6,-1536,256,1536,2048,2816,3840,4608,4352,3072,2048,768,0,-768,-1792,-2560,-2816,-2304,-1536,-7
68,0,1024,2048,2816,3328,3584,3328,2816,2048,1536,768,0,-256,-512,-256,256,1024,1536,2048,2560,
3072,3328,3328,2816,2304,1536,256,-512,-1792,-2560,-3328,-4096,-4608,-4864,-5120,-5376,-5632,-5
376,-5376,-4864,-3840,-2560,-1024,-256,0,512,1024,1792,2048,1536,768,256,0,-256,-768,-1280,-153
6,-1024,-768,-512,-256,0,256,768,1024,1024,1024,512,256,0,0,0,256,512,768,1536,2048,2816,3072,3
328,3584,3584,3328,2816,2048,1280,256,0,-1024,-1536,-2048,-2304,-2816,-3072,-3072,-3072,-3072,-
3328,-3584,-3584,-3328,-2560,-1792,-1280,-768,-256,256,768,1280,1792,1536,1536,1280,1024,512,25
6,0,-256,-512,-512,-512,-256,0,0,512,768,768,1024,1024,1024,1024,1024,1024,1024,1024,1024,1024,
1024,1280,1280,1536,1536,1536,1536,1536,1280,1024,768,512,0,-256,-512,-1024,-1280,-1792};

Int16 warning[SINE_TABLE_SIZE_warning] =
{-3328,-3584,-4352,-5120,-5376,-5120,-4608,-3328,-1792,0,1536,3328,4864,5632,6144,6144,5632,486
4,3840,2816,1280,512,-256,-1024,-1536,-1792,-1536,-1280,-512,0,512,1280,1792,2304,2304,2304,179
2,1280,256,-256,-1536,-3072,-4352,-5632,-6912,-8192,-8704,-9472,-9472,-9216,-8448,-6656,-4096,-
1024,2560,5888,9216,11776,12800,13312,12032,10240,7680,4864,2048,-256,-2304,-4096,-5120,-5888,-
5888,-5376,-4352,-2816,-1024,1024,3072,5120,6400,7424,7680,6912,5632,3840,1792,-512,-3072,-5632
,-7936,-9984,-11776,-12800,-13568,-13568,-12544,-11520,-9728,-6656,-2816,1536,6656,10496,13568,
15104,14592,13056,9984,6656,3328,256,-1792,-3328,-4608,-5120,-5632,-5632,-4608,-3584,-1536,768,
3584,6400,8448,9472,9472,8192,6400,3840,1280,-768,-3072,-5376,-7680,-9728,-11776,-13568,-14080,
-14080,-13056,-11520,-9728,-7680,-5888,-3584,0,3584,7936,11520,13312,13824,11776,8960,5120,1536
,-1024,-2560,-3072,-2816,-2816,-2816,-2816,-3072,-2560,-1792,0,2304,4608,6656,8192,8448,7680,64
00,4608,2560,512,-1792,-3840,-5888,-76
80,-8960,-10240,-10752,-10496,-9984,-8960,-8192,-7680,-7680,-7936,-7424,-3840,512,5888,11520,13
056,12288,8448,3584,256,-1024,-768,768,1280,512,-1024,-3584,-4352,-3072,0,3840,6656,8192,7680,6
400,5120,4608,4352,3840,2816,512,-2048,-4608,-5632,-5888,-5120,-4608,-4608,-5888,-7680,-9216,-9
216,-8448,-7424,-7168,-7936,-9728,-9216,-4352,1024,8960,13568,13312,10496,4864,1280,512,1280,33
28,3584,1280,-1792,-4608,-4864,-2048,2048,6400,8192,7424,5632,4096,4352,5632,6912,6144,2816,-10
24,-4352,-5632,-4608,-2560,-1280,-2304,-4864,-8704,-11264,-11776,-11264,-10240,-10240,-11520,-1
3056,-13824,-11776,-3584,4864,12032,17152,14336,10240,4864,512,256,256,0,-768,-3328,-5120,-4864
,-2304,2560,7680,10496,11008,8192,4864,2560,2304,4352,5888,5120,1280,-3584,-7424,-6912,-2816,23
04,5632,3072,-4352,-13056,-18688,-19200,-15616,-12032,-12032,-15104,-18688,-18176,-11776,1024,1
4080,18944,17664,9216,3072,2048,3840,5632,2304,-4608,-10752,-12288,-7424,512,6400,8192,6656,384
0,4096,6400,9216,9216,5888,1536,-1792,
-2304,-768,1024,2304,2560,2560,1280,1024,-768,-4096,-7680,-11264,-13056,-12800,-11008,-8960,-71
68,-7168,-8448,-10240,-10752,-9216,-5376,0,4096,6144,4864,1792,-2048,-4864,-5632,-4352,-1536,10
24,2816,3328,2816,2048,2048,2560,4352,5888,7168,6656,5120,3072,1280,256,256,1536,3072,4608,4864
,4352,3072,1280,0,-1024,-2304,-3840,-5888,-8704,-11264,-13824,-15104,-16384,-14592,-10752,-5888
,-768,2048,3072,768,-1536,-3840,-4352,-3328,-1536,256,1024,1024,256,512,1280,2816,5120,6400,665
6,5376,3840,2560,2048,2560,3328,4608,5120,5120,4608,3584,3072,2304,2304,2304,1792,768,-1024,-30
72,-6144,-8960,-11520,-13568,-14336,-13824,-8960,-3840,2304,5376,6144,3584,0,-2304,-3840,-2048,
-1024,256,0,-256,0,1024,3328,5120,6144,5632,4096,2560,1024,768,1280,2048,3328,3840,4352,3840,35
84,3072,2560,2048,1280,512,-256,-768,-1536,-2560,-4352,-7424,-10240,-13824,-16128,-16896,-13312
,-6912,0,4864,5632,3072,-1536,-4864,-5376,-3072,-256,1536,1536,512,256,1024,3072,5120,6144,5376
,3840,1536,512,0,1024,2304,4096,4864,5
120,4608,3328,2816,1792,1792,1280,1024,512,-512,-1024,-2304,-2816,-5632,-8448,-11776,-15104,-17
152,-15360,-8704,-1280,4864,5888,3584,-1792,-4864,-5120,-2560,768,1792,1024,0,0,2048,4864,6400,
6144,4096,2304,1792,2560,3328,3584,2816,1792,2560,3840,6144,6400,6144,3328,1024,0,0,1024,1024,5
12,-1024,-3584,-6400,-10240,-13056,-16384,-18432,-18432,-12288,-3584,4096,6912,3072,-2304,-7424
,-6656,-2816,1792,3328,1536,-768,-1280,1280,4352,6144,5376,3072,1024,1280,2048,3328,2816,2048,1
280,1792,3072,4608,5376,5376,4608,3072,1792,256,-512,-768,0,768,0,-2560,-8448,-14336,-18432,-19
968,-18176,-11008,-2304,4096,4864,1280,-3584,-6656,-5888,-2048,1280,2048,768,-768,-256,2304,537
6,6656,5120,2816,1536,1536,2816,3840,3328,2560,2048,2560,4352,5888,5888,4864,3840,2816,2304,128
0,512,256,768,1280,768,-2304,-7936,-13312,-16896,-18176,-17408,-11264,-2816,3840,6912,2560,-230
4,-7424,-7680,-3840,256,2816,2560,1024,1536,3840,5632,5632,3840,1792,1280,3072,4352,4608,2304,5
12,256,2304,5120,6400,5632,3584,2304,2
048,2560,2048,1024,256,256,256,-512,-4352,-9472,-14592,-17664,-19712,-18176,-10240,-256,7168,76
80,1024,-5888,-10240,-7680,-1536,3072,4096,1792,0,1280,4096,5632,4096,1280,-256,768,3584,5120,4
608,2048,0,512,2560,4864,5888,5120,3840,3072,2560,1792,1024,768,1280,2048,1280,-768,-6144,-1254
4,-16896,-18176,-18432,-17152,-10240,-1280,5120,5888,0,-5888,-9216,-6144,-768,2560,2816,512,0,2
816,5888,6400,3328,-256,-1024,2048,6400,7168,4096,0,-1280,1024,4864,6400,5120,2560,2048,3840,53
76,4352,512,-1536,-1024,2048,4096,3072,-2048,-8960,-14336,-16640,-18688,-19456,-13056,-1280,768
0,9472,1024,-7424,-11776,-8192,-1024,3328,2560,0,-768,2304,5632,6144,2560,-256,-256,3328,6912,6
656,3328,-256,-768,1536,4608,5888,5376,4608,4608,4864,3840,1536,-512,-512,1024,3328,2816,0,-435
2,-10240,-14080,-16640,-19456,-18432,-6912,4352,12288,7936,-3072,-10496,-11520,-5120,1792,3328,
1792,-768,1024,4608,6144,4352,256,-768,1280,5120,7168,5120,1536,-512,0,3072,4864,5632,5376,5120
,5376,5120,3328,768,-256,256,2048,3584
,1792,-1024,-5376,-11008,-14336,-16896,-19200,-16128,-3072,7424,12288,4352,-5376,-10240,-8704,-
2048,1536,1024,0,0,3584,6400,5120,2048,-512,0,3072,5632,5376,3072,768,1024,2816,4096,4096,4096,
4864,5888,6144,4608,1536,0,256,1792,3072,2304,512,-2304,-5632,-10240,-15360,-18944,-20992,-9472
,4608,12032,9728,-2816,-8448,-8448,-3328,0,-256,-1280,768,2560,5888,3584,1280,-256,768,3328,460
8,4096,3072,1536,1792,2048,2048,2048,2816,4096,5632,5376,3840,2048,0,-512,0,1024,1536,768,0,-20
48,-5120,-10752,-16128,-18688,-18432,-4864,5120,9984,5376,-3072,-6656,-6400,-3584,-768,-1536,51
2,2304,3328,3328,1024,256,1280,3072,5120,4096,3072,1792,1024,1792,2048,2560,3328,3840,4864,4864
,3840,2048,0,0,512,1792,1536,0,-1024,-2560,-3840,-6912,-11008,-14336,-16640,-9728,512,6144,6656
,512,-2560,-2816,-1792,-512,-768,-1280,512,2048,3584,2304,1280,2304,3840,4352,2304,256,256,2048
,3584,3584,2048,1536,2560,4352,4096,1792,256,0,1536,1792,256,-1536,-2560,-1536,-256,-768,-3584,
-7680,-9984,-11520,-9216,-1792,1280,25
60,768,-256,1280,1280,0,-768,-1792,256,1280,1536,2048,2304,3328,2816,1280,768,768,1280,1792,153
6,1536,2048,2560,2304,1024,256,0,512,768,0,-768,-1536,-1280,-1024,-512,-768,-1792,-3328,-5120,-
6144,-7936,-10496,-10496,-8704,-7936,-7936,-7168,-6144,-5120,-3840,-2560,-1024,0,1536,2304,3584
,4096,4864,5120,5376,5376,5120,4864,4608,4608,4608,4608,4608,4352,4096,4096,4096,4096,3840,3072
,2816,2304,1792,1280,512,0,-1536,-3072,-4864,-6400,-8192,-10496,-11776,-11264,-11008,-10752,-10
240,-9216,-7936,-6400,-4608,-3072,-1536,0,1536,2816,3840,5120,5888,6656,6912,7424,7680,7936,793
6,7936,8192,8192,7936,7424,6656,6144,5888,5120,4096,2816,2560,1792,1024,0,-768,-1792,-3072,-486
4,-7168,-8704,-10496,-12544,-13824,-13056,-12544,-12288,-11520,-10240,-8192,-5888,-3584,-2048,-
256,1792,3840,5120,6144,6912,7936,8192,8448,8192,7936,7680,7168,6656,5888,5632,5376,4352,3584,3
072,2048,1536,256,-256,-1024,-1280,-1280,-1792,-2304,-2560,-2816,-3328,-4608,-6144,-7168,-8704,
-9984,-11008,-9728,-8704,-7936,-6912,-
5632,-4096,-2304,-512,768,1792,3072,4608,5632,6144,6400,6400,6656,6656,6400,5888,5120,4608,4096
,3584,3328,3072,2560,2304,1792,1280,768,768,256,0,-256,-256,-512,-256,-1024,-1024,-1792,-2816,-
4864,-7168,-8960,-11008,-13312,-14336,-11520,-9984,-7936,-7424,-6656,-4864,-3072,-1280,0,512,20
48,3584,4608,5632,5632,5888,6400,6912,6912,6656,6144,6144,5632,4864,4608,4352,4352,4096,3584,28
16,2304,2304,2560,2560,1792,1024,1024,1024,1024,0,0,-1024,-2048,-4608,-7680,-9984,-11520,-13824
,-15360,-10240,-6400,-2816,-2304,-2048,-1024,768,1536,768,256,1280,3328,3840,3328,3072,3584,435
2,5120,5120,5120,5376,5632,5632,4864,4608,4608,4864,5120,4608,3840,3584,3328,3072,3072,2048,179
2,1280,1024,1024,0,0,-768,-2560,-4352,-7680,-10752,-12288,-13824,-16640,-17152,-9472,-3840,-512
,-1024,-512,768,1536,-256,-1024,-768,2560,4352,4096,3328,4096,4352,4096,2048,2048,3840,5120,460
8,3584,3328,4352,3840,2560,2304,3328,4352,3840,3072,3840,4864,4864,3072,1280,512,768,512,-512,-
2048,-1536,-3584,-5376,-6144,-7424,-81
92,-8960,-11008,-10752,-6656,-3072,-2304,768,3328,5888,5888,5632,6912,7680,6656,6144,5888,5888,
4864,3840,3840,3840,3072,2560,2560,2560,2560,2048,2048,2048,2048,1792,2048,2048,1792,1280,768,1
024,512,0,-256,-1024,-1280,-2048,-3072,-3840,-5376,-6912,-7936,-8960,-9728,-9984,-10752,-9984,-
9984,-10752,-9728,-3328,-1024,0,3328,6656,8448,7680,6912,8960,8448,6912,6400,6400,6144,4352,307
2,3584,2816,2304,2048,2304,2560,2048,2048,1792,1792,1792,1536,1536,1280,1024,256,-512,-512,-512
,-1024,-1536,-1280,-1280,-1280,-2304,-3072,-3328,-5632,-6912,-7168,-8448,-8704,-9728,-9472,-921
6,-9984,-10496,-5888,-1024,-512,2304,5376,8448,7936,6656,7936,8448,7168,6400,6400,6144,5120,307
2,3328,3072,2560,2048,2048,2560,2560,1792,2048,1792,1792,1536,1536,1536,1280,768,0,-768,-512,-5
12,-1280,-1536,-1536,-1280,-1536,-2816,-3072,-4096,-6144,-6912,-7424,-7424,-8704,-8704,-8192,-8
192,-9472,-9216,-2816,-512,-512,3328,6912,8192,7168,7168,9984,8704,6912,7424,7936,6912,4608,384
0,4352,2816,1536,1792,2304,1792,768,76
8,1536,512,0,512,1024,512,0,256,0,-1024,-1280,-1024,-1024,-1280,-1536,-1536,-1536,-2560,-3328,-
4096,-6144,-6912,-7936,-8960,-9728,-10496,-9984,-9984,-11008,-10496,-5376,-2048,-1536,2560,5888
,8192,7424,7680,9472,9216,7168,7680,7936,6912,5120,4096,4096,3072,1536,1792,2048,1792,1024,1024
,1792,1024,256,768,1280,1024,512,512,512,-256,-1280,-1024,-1024,-1280,-1792,-1792,-1536,-1792,-
2816,-3328,-4096,-6144,-6400,-7680,-8192,-9216,-9728,-8960,-9216,-10496,-8960,-3584,-2048,-512,
3072,6656,7680,7424,7936,9728,8704,7424,7680,7936,6400,4608,4352,4096,2304,1280,1536,1792,1280,
768,1024,1536,512,256,768,1280,768,256,512,512,-512,-768,-1024,-1024,-1280,-1792,-1536,-1536,-2
560,-2816,-3584,-4608,-6400,-6656,-7936,-8704,-9216,-9216,-9472,-9728,-9728,-8704,-3328,-2048,-
256,3840,5888,7424,7168,7424,8704,7680,6656,6912,6400,5888,4096,3840,3328,2048,1280,1280,1792,1
280,1024,1280,1536,1024,1024,1280,1536,1280,1024,1024,768,0,-512,-512,-1024,-1024,-1792,-1280,-
1536,-2304,-2816,-2816,-3584,-5632,-64
00,-6656,-8448,-8960,-9216,-9216,-9472,-9984,-9984,-6656,-2816,-2816,1024,3584,5632,6144,6144,7
168,7424,6144,6400,6400,5888,4864,3840,3840,2560,1280,1280,1280,1280,512,768,1280,1024,768,768,
1024,1280,1280,1280,1280,1024,256,-256,-256,-512,-1024,-1024,-1024,-1024,-1536,-2048,-2048,-281
6,-4352,-5376,-5376,-6912,-7680,-7936,-7936,-8192,-8704,-9216,-6912,-2560,-2560,256,3584,5376,6
400,5888,6912,7680,5888,6144,6144,5888,4864,3840,3840,3072,1536,1536,1280,1280,768,512,1280,102
4,768,768,1024,1024,1280,1280,1280,1024,768,0,-256,-256,-768,-1024,-1024,-1024,-1024,-1792,-204
8,-2304,-3584,-4864,-5376,-6144,-7424,-7936,-8448,-8448,-8704,-9472,-8960,-6400,-3584,-2816,0,2
816,4864,5888,6144,7424,7936,6912,7424,7168,6912,5888,5120,4608,3328,2304,1792,1024,768,256,0,0
,-256,-512,-512,-512,-512,-256,0,0,0,0,-256,-512,-768,-1024,-1024,-1024,-1024,-768,-1024,-1280,
-1536,-2048,-2816,-3584,-4352,-5120,-5888,-6656,-7168,-7936,-8704,-9216,-8960,-6656,-5632,-4352
,-2048,0,1536,2560,3328,5120,5888,6400
,7168,7680,7936,7424,6912,6400,5632,4608,3840,3328,2816,1792,1280,768,256,-256,-768,-1280,-1280
,-1280,-1024,-1024,-768,-512,-768,-768,-768,-768,-512,-256,0,0,-256,-512,-768,-1024,-1792,-2304
,-3328,-4096,-5376,-6400,-7424,-8448,-9216,-9984,-9728,-8960,-7680,-6144,-3840,-1792,512,2816,4
864,6912,8448,9728,10752,11008,11264,10752,9728,8704,7424,6144,4864,3328,2304,1024,0,-512,-1280
,-2048,-2560,-3072,-3328,-3840,-3840,-3584,-3328,-2816,-2048,-1536,-1024,-512,0,512,512,1024,15
36,1792,1792,1280,768,0,-768,-1792,-2560,-3072,-3584,-4352,-5120,-5120,-4608,-3072,-2304,-1792,
-1024,-256,256,1280,1792,2048,3072,3840,4352,4352,4352,4352,4608,4608,4608,4352,4352,4096,3840,
3584,3072,2560,1792,1280,768,512,256,0,-256,-512,-512,-768,-768,-1024,-1280,-1792,-2304,-2816,-
3328,-3840,-4608,-5376,-5888,-6144,-6656,-7168,-7424,-7424,-7680,-7424,-7424,-6912,-6656,-6400,
-6144,-4864,-3072,-1280,0,1536,3328,5120,6400,7168,7680,8192,8704,9216,8448,7680,7168,6656,5888
,5120,4096,2816,2304,1536,768,256,-256
,-768,-768,-1024,-1024,-1024,-768,-512,0,256,512,512,768,512,256,0,-256,-512,-1280,-1536,-2304,
-3072,-3840,-4096,-5120,-5888,-6912,-7424,-8192,-8704,-8960,-8960,-9216,-8960,-7936,-6400,-4352
,-2816,-768,1280,3328,5120,6400,7680,8448,9216,9728,9728,9472,8960,8192,7424,6656,5632,4608,358
4,2560,1536,512,-256,-768,-1792,-2304,-2560,-2816,-2816,-2816,-2304,-2048,-1536,-1024,-768,-512
,-256,-256,-256,-256,-512,-1024,-1536,-2304,-2560,-3328,-4096,-5120,-5632,-6400,-7168,-7936,-81
92,-8448,-8704,-8704,-7936,-6656,-5120,-3584,-1536,0,2304,4352,5632,7168,8192,9216,9728,10240,9
984,9472,9216,8448,7680,6656,5632,4352,3328,2048,1024,0,-768,-1792,-2304,-2560,-3072,-3072,-281
6,-2560,-2048,-1536,-768,-512,0,256,512,512,512,512,0,0,-768,-1536,-2048,-2816,-3840,-4864,-563
2,-6400,-7680,-8448,-8960,-9216,-9984,-9728,-8704,-7680,-5888,-4352,-2304,0,2048,4096,5376,6912
,8192,9216,9984,10240,10240,9984,9472,8704,8192,6912,5888,4608,3584,2304,1024,0,-768,-1792,-256
0,-3072,-3328,-3328,-3072,-2816,-2304,
-1792,-1280,-512,-256,0,256,512,512,256,0,-256,-1024,-1280,-2048,-2816,-3840,-4608,-5632,-6400,
-7168,-7680,-7936,-8192,-8448,-8192,-7168,-5888,-4096,-2560,-512,1536,3584,5376,6912,7936,8960,
9728,10240,10240,9728,9472,8704,7936,6912,5888,4608,3584,2048,1024,0,-1280,-2048,-2816,-3328,-3
840,-4096,-3840,-3840,-3328,-2816,-2048,-1536,-768,0,256,512,768,768,768,512,0,-768,-1536,-2048
,-3072,-4352,-5376,-5888,-6656,-7424,-7680,-7680,-7680,-7936,-7680,-7168,-5888,-4352,-2816,-128
0,512,2560,4352,5888,6656,7936,8960,9728,9728,9728,9472,8960,8448,7680,6656,5632,4864,3840,2560
,1536,512,0,-768,-1536,-1792,-2048,-2304,-2048,-2048,-1792,-1280,-768,-512,0,256,512,512,512,25
6,0,-512,-1024,-2048,-3072,-4096,-5120,-6144,-7168,-8192,-8704,-9216,-9216,-9472,-9216,-8960,-8
448,-6656,-5120,-3584,-1536,0,2304,4096,5632,6912,7680,8960,9728,9728,9728,9216,8704,7936,6912,
5888,4864,3584,2816,1536,512,-256,-1024,-1536,-2304,-2304,-2560,-2560,-2304,-1792,-1536,-1280,-
768,0,512,1024,1536,1792,1792,1536,128
0,768,0,-512,-1792,-2816,-4096,-4864,-5888,-7168,-8192,-8704,-8960,-9472,-9472,-9472,-8704,-793
6,-6144,-4608,-2560,-512,1280,3584,5632,7168,8704,9984,11008,11520,11776,11520,11008,10240,9216
,7936,6656,5376,4096,2560,1280,0,-768,-1792,-2560,-3072,-3584,-3840,-3840,-3584,-3328,-2816,-25
60,-1792,-1280,-512,0,512,1280,1536,1792,1536,1024,512,0,-512,-1792,-2816,-4096,-5120,-6144,-69
12,-7936,-8448,-8704,-8704,-8960,-8448,-7424,-6144,-4608,-3072,-1024,1024,2816,4608,6144,7424,8
960,9728,10240,10496,10240,9984,9216,8192,6912,5888,4608,3328,2048,768,0,-768,-1792,-2560,-3072
,-3584,-3840,-3840,-3840,-3584,-3072,-2816,-2560,-2048,-1280,-768,-512,0,256,512,256,0,-256,-51
2,-1024,-1792,-2560,-3328,-4096,-5120,-5632,-6144,-6656,-6912,-6912,-7168,-6656,-5888,-4864,-38
40,-2560,-1024,512,1536,3072,4096,5120,6144,6912,7424,7680,7680,7168,6912,6400,5632,4864,4096,3
328,2304,1536,1024,256,-256,-1024,-1280,-1792,-2048,-2304,-2304,-2304,-2304,-2048,-2048,-1792,-
1536,-1280,-1024,-768,-512,-512,-512,-
512,-256,-768,-1280,-1280,-1792,-2304,-3072,-3584,-4096,-4352,-4608,-4864,-5376,-5632,-5120,-46
08,-4352,-3584,-2560,-1536,-512,256,1024,2048,3072,3840,4608,4864,5376,5632,5888,5888,5632,5632
,5376,4864,4608,4096,3584,3072,2560,2048,1536,1024,512,0,-256,-512,-768,-1024,-1280,-1536,-1536
,-1792,-2048,-2048,-2304,-2304,-2304,-2304,-2304,-2560,-2560,-2816,-3072,-3328,-3328,-3840,-384
0,-4096,-3840,-3840,-3840,-3840,-3328,-2816,-2304,-1792,-768,0,1024,1536,2304,2816,3328,3840,43
52,4608,4864,5120,5120,5120,4864,4864,4352,4096,3584,3328,2816,2304,1792,1536,1024,512,0,-256,-
768,-1280,-1536,-1792,-2304,-2560,-2816,-3072,-3072,-3328,-3328,-3328,-3072,-3072,-3072,-3072,-
3072,-2560,-2560,-2816,-2560,-2560,-2304,-2048,-1792,-1536,-1024,-512,-256,0,768,1024,1280,1792
,1792,2048,2048,2048,2304,2304,2304,2304,2304,2048,2048,1792,1536,1280,1024,768,512,512,512,768
,768,768,512,512,512,256,0,0,-256,-512,-768,-768,-1024,-1280,-1536,-1536,-1536,-1536,-1792,-179
2,-1792,-1792,-1792,-1792,-2048,-2048,
-2048,-2304,-2304,-2304,-2304,-2304,-2048,-1792,-1536,-1280,-1024,-768,-512,0,256,256,768,1024,
1280,1536,2048,2304,2304,2560,2560,2816,2816,2816,2816,2560,2304,2048,1792,1536,1280,1024,512,2
56,0,-256,-512,-768,-768,-1024,-1280,-1280,-1536,-1792,-2048,-2048,-2048,-2048,-2048,-1792,-153
6,-1280,-1280,-768,-512,-512,-256,0,256,256,256,512,512,512,768,768,768,768,1024,768,768,768,76
8,1024,768,768,512,256,256,256,0,-256,-256,-512,-512,-512,-512,-512,-256};

Int16 low[SINE_TABLE_SIZE_low] =
{-1280,-1536,-2048,-2304,-2560,-2560,-2560,-2304,-2048,-1792,-1280,-768,-256,0,512,768,768,768,
512,0,-1024,-2304,-3840,-5376,-6656,-7168,-6656,-5632,-4096,-2816,-1536,-256,1024,2304,4352,537
6,6400,6400,6144,5376,4608,3840,3072,2048,1024,0,-512,-1280,-1536,-1792,-1792,-1536,-1536,-1024
,-768,0,256,1024,1536,2048,2560,3072,3328,3072,2560,1792,1024,-256,-1792,-3584,-5120,-6656,-793
6,-8960,-9472,-9728,-8960,-7168,-5120,-2304,0,2048,4096,5632,6912,8192,8448,8192,6912,5632,3584
,2048,512,-256,-1536,-2048,-2560,-2560,-2048,-1536,-256,512,1792,2560,3328,4096,4608,4864,4864,
4608,3840,3328,2304,1280,0,-1536,-3072,-4352,-5888,-7168,-8704,-9984,-11008,-11776,-11776,-1049
6,-8448,-5376,-2560,0,2304,4352,6144,7936,9216,10240,9984,8960,7424,5632,4096,2560,1536,512,0,-
768,-1280,-1280,-1024,-768,0,256,768,1280,1792,2304,2304,2304,2304,2048,1536,1280,768,0,-1024,-
2048,-3328,-4352,-5632,-6656,-7680,-8960,-10240,-11264,-12032,-10752,-8704,-5888,-2560,0,2304,4
096,5632,7424,9216,10240,10496,9472,74
24,5376,3072,1536,256,0,-768,-1536,-2048,-2048,-1280,-256,768,2048,2816,3328,3584,3840,4096,435
2,4608,4096,3584,2304,1024,-256,-1536,-3072,-4864,-6400,-7936,-9728,-11520,-13056,-14080,-14848
,-14848,-13312,-10240,-6400,-2304,1024,3840,6400,8192,9984,11776,12800,13056,11776,9728,6912,46
08,2560,768,0,-768,-1536,-2048,-2304,-1792,-1024,0,768,2048,2816,3584,3840,4096,4096,3840,3584,
3072,2304,1280,-256,-2304,-4608,-6400,-7680,-8704,-10240,-11520,-12544,-14336,-15360,-14848,-13
824,-9728,-5376,-1280,2048,4608,5888,7680,9216,10752,11776,11264,9472,6656,3840,1536,0,-512,-10
24,-1280,-1280,-1280,-768,0,1280,2560,3840,4608,5120,5120,4864,4608,3840,3328,2560,1792,768,0,-
2048,-3840,-5632,-7168,-8960,-10240,-12032,-14336,-16128,-18176,-19456,-17664,-14336,-8704,-128
0,3328,8192,10752,11520,13312,14848,15104,14592,11520,6912,1792,-2304,-5376,-5888,-5888,-5376,-
4352,-3584,-1792,512,3072,6144,8704,9728,9472,8704,7424,6144,4864,4096,3072,2048,1024,-256,-153
6,-3328,-5376,-8192,-10240,-13312,-158
72,-18176,-20736,-22016,-23040,-22016,-17408,-10240,-2816,5376,11776,14592,15616,15616,14848,14
592,12544,8960,4096,-1024,-5632,-7680,-7936,-5632,-1792,1792,5376,8448,9728,10752,10752,10496,9
472,7680,5120,2048,0,-1792,-2304,-1536,0,1792,3584,3840,2560,256,-3072,-5120,-7424,-10496,-1408
0,-17664,-22272,-23296,-23040,-15360,-2816,11008,20992,22528,16896,5376,-4096,-8448,-7424,-2560
,512,1280,1024,1792,5120,9728,12288,10496,5632,256,-1792,0,3840,6656,5888,2560,512,1280,5120,84
48,8192,5888,1792,0,2048,5376,6400,2816,-5888,-12032,-14592,-11008,-8704,-8960,-13312,-18176,-2
1248,-19456,-16384,-4608,4608,15104,17408,14080,6144,-1024,-5632,-4352,-1280,2560,4352,5376,614
4,7680,9216,9216,5632,1024,-3072,-3584,-1024,3584,6656,7424,5120,2816,2816,5376,7424,7424,4608,
2048,2048,4352,7424,7680,3328,-3328,-9728,-11008,-8960,-6656,-8960,-12288,-17408,-18432,-18944,
-15616,-13568,512,9216,20480,16384,8192,-3584,-8192,-7680,0,4096,7168,5632,6400,6656,8448,5888,
2048,-3072,-3840,-1280,4096,6400,6144,
2304,0,512,3840,5632,6400,4096,2816,3072,6656,8192,7168,4608,1536,1536,0,-3584,-8960,-14336,-16
384,-15616,-15872,-15104,-16896,-17920,-17664,-9728,5888,14848,17920,6400,-2304,-9472,-6656,-76
8,3072,4864,5376,6656,9472,8960,5376,0,-3328,-3584,0,4096,5888,5888,4096,2816,2048,1792,2304,25
60,3840,5376,6912,7424,6912,4864,1792,512,2048,3328,2816,-4864,-10240,-13824,-13568,-10240,-947
2,-11008,-13824,-15872,-9216,4096,15616,22784,18432,8448,-768,-6656,-5888,-3840,-3840,-5120,-69
12,-5376,256,6912,11520,11008,6400,1536,-1024,-256,2048,3840,3840,2304,1792,3328,6656,9984,1100
8,9216,6144,3072,2048,2560,2816,1280,-2304,-7168,-11008,-12544,-12032,-11264,-12032,-14592,-174
08,-17664,-16384,-12288,-4608,6144,13568,18432,14592,7680,512,-4608,-5888,-5888,-6144,-6144,-51
20,-2304,2816,7168,10240,8960,5120,1280,-768,-256,1280,2560,3328,2816,2816,3840,6144,8192,8704,
7424,5376,3840,3840,4096,3584,1280,-2816,-7680,-11776,-13568,-13568,-12544,-12288,-13056,-14080
,-14848,-14336,-11776,-5632,5120,12032
,16640,13568,6144,0,-4864,-4352,-3328,-3328,-4096,-4864,-3840,256,4608,7424,6912,3328,0,-1536,0
,2560,4608,5120,4096,3072,3584,5120,7168,7424,5888,3584,2560,3328,4864,5632,3072,-1536,-7424,-1
1520,-13312,-12800,-12544,-13056,-15104,-16128,-15872,-14336,-11008,-5376,5120,11776,16384,1305
6,5632,-512,-4864,-4864,-2560,-1792,-1536,-2048,-1024,2560,6400,8960,7680,3328,-256,-2560,-1024
,1792,4352,5632,4864,3584,3328,5120,6912,7936,5888,3840,1792,2816,4096,5376,3584,-768,-6400,-11
008,-13312,-13312,-13568,-14848,-17664,-19200,-18432,-16384,-12544,-7936,3072,11264,17920,19456
,12288,5376,-1536,-4864,-4352,-4352,-3840,-3328,-3072,512,4096,7424,8960,5888,2304,-1024,-2816,
-768,768,3584,5120,4864,5120,5376,6144,7424,7424,6144,4608,3072,3840,4352,5120,3584,-256,-5632,
-10496,-13568,-14592,-14592,-14592,-14336,-15360,-14848,-14848,-13568,-8960,1792,9216,15872,151
04,8192,2816,-1792,-2560,-512,-768,-2048,-3072,-4352,-768,3072,6144,7936,5632,2048,256,-256,153
6,3840,4864,4864,3584,2560,3584,4864,7
168,7936,6400,4864,4096,4864,6400,6400,3584,-1280,-7936,-12288,-14336,-14848,-15872,-16896,-186
88,-18688,-16896,-14592,-11008,-4864,6144,13312,19200,16384,8960,2048,-2816,-3328,-1792,-2048,-
3072,-3840,-3072,1280,6144,9216,8960,4608,256,-2048,-2560,0,1536,2560,2304,1792,2304,4352,6144,
7168,6656,4608,3072,2560,3584,5120,4864,1792,-2816,-7424,-10496,-11776,-12288,-13312,-15360,-16
640,-17664,-16128,-12800,-10240,-5632,3328,10240,16384,16896,11008,5376,-512,-3328,-2816,-3072,
-3840,-3840,-4352,-1280,2304,5376,7424,6400,3584,1792,512,1280,3072,3584,4352,4096,3328,3840,46
08,5120,5632,4864,4096,3584,3584,4352,4864,3840,512,-4096,-9216,-12800,-14592,-15104,-15872,-17
152,-18176,-18176,-16128,-13568,-9984,-2816,6912,13056,17664,14080,7424,2048,-2048,-2816,-2048,
-3072,-3840,-4608,-3840,0,3584,6656,7424,4864,2560,1024,768,3072,4352,4864,4352,3328,2816,3584,
4352,5376,5632,4608,3840,3584,4096,5120,5120,2304,-2048,-7424,-11776,-13824,-13824,-13056,-1305
6,-13568,-14336,-14080,-13056,-11008,-
6912,1024,7936,12544,13056,7424,2048,-2048,-3584,-2048,-1536,-2048,-3072,-40


(You need to be a member of c55x -- send a blank email to c55x-subscribe@yahoogroups.com )

Re: Buil error - Jeff Brower - Mar 15 14:32:58 2007

Ang Teik Boon-

> i facing this error:
> 
> [Linking...] "C:\CCStudio_v3.1\C5500\cgtools\bin\cl55" -@"Debug.lkf"
> <Linking>

What's the value of SINE_TABLE_SIZE_light + SINE_TABLE_SIZE_battery +
SINE_TABLE_SIZE_door + SINE_TABLE_SIZE_warning + SINE_TABLE_SIZE_low ?

What 55x device is this?  It's possible you've declared too much .bss section data,
so your other sections no longer fit.  Do you have external memory available?  If so
you can force the sine tables into external mem, and keep them out of .bss section

-Jeff
>>   error: can't allocate .rtdx_data, size 00000250 (page 0) in DARAM (avail:
            000001a8)
>>   error: can't allocate .sysstack, size 00000200 (page 0) in DARAM (avail:
            000001a8)
>>   error: can't allocate .trace, size 00000200 (page 0) in DARAM (avail:
            000001a8)
>>   error: can't allocate .sysdata, size 00000178 (page 0) in DARAM (avail:
            00000028)
>>   error: can't allocate .csldata, size 00000128 (page 0) in DARAM (avail:
            00000028)
>>   error: can't allocate .LOG_system$buf, size 00000080 (page 0) in DARAM
            (avail: 00000028)
>>   error: can't allocate .pip, size 000000c8 (page 0) in DARAM (avail:
            00000028)
>>   error: can't allocate .const, size 000000a0 (page 0) in DARAM (avail:
            00000028)
>>   error: can't allocate .hst0, size 00000080 (page 0) in DARAM (avail:
            00000028)
>>   error: can't allocate .idl, size 00000020 (page 0) in DARAM (avail:
            00000004)
>>   error: can't allocate .log, size 00000014 (page 0) in DARAM (avail:
            00000004)
>>   error: can't allocate .sts, size 00000010 (page 0) in DARAM (avail:
            00000004)
>>   error: can't allocate .sys, size 00000010 (page 0) in DARAM (avail:
            00000004)
>>   error: can't allocate .args, size 00000010 (page 0) in DARAM (avail:
            00000004)
>>   error: can't allocate .hst1, size 00000010 (page 0) in DARAM (avail:
            00000004)
>>   error: can't allocate .clk, size 00000008 (page 0) in DARAM (avail:
            00000004)
>>   error: errors in input - ./Debug/tone.out not build.

//the coding whose cause this error is the below:



(You need to be a member of c55x -- send a blank email to c55x-subscribe@yahoogroups.com )

Re: Buil error - Jeff Brower - Mar 16 18:23:45 2007

Ang-

First, regarding amount of memory you're allocating, you didn't answer my question.
If you don't answer the question I can't help.

Second, DSK 5510 card does have external memory (SDRAM, look on the card for U24).

Also, please reply to the group.  My job only permits me to reply via the group.

-Jeff
Ang Teik Boon wrote:

> hi Jeff:
> the data is like this:
> Int16 light[SINE_TABLE_SIZE_light] =
> {-768,-512,-768,-1280,-2304,-3328,-4
>
608,-5120,-4864,-4352,-3072,-2048,-1024,-256,512,1792,3072,4096,5120,5376,5376,4864,4352,3840,3
072,2560,1792,768,0,-256,-1024,-1280,-1792,-1792,-1792,-1536,-1024,-768,0,768,1536,2304,2560,28
16,2816,2048,1536,256,-768,-2560,-4352,-5888,-7168,-8448,-9216,-9728,-9216,-7680,-5888,-3328,-7
68,1024,2816,4352,5888,7424,7936,8192,7424,6144,4864,3328,2304,1024,0,-768,-1536,-2048,-2304,-2
048,-1280,-512,0,512,1280,2048,2816,3328,3840,3840,3584,2816,1792,512,-768,-2304,-3840,-5888,-7
680,-9216,-10752,-11776,-11520,-10496,-8448,-5632,-2816,-256,1792,3584,5632,7168,8704,9472,9472
,8704,7424,6144,4608,3840,2560,1536,512,-256,-768,-1024,-1024,-768,-768,-512,0,0,256,512,768,10
24,1280,1024,512,0,-768,-2048,-3072,-4352,-5376,-6912,-8192,-9984,-11008,-12032,-11008,-9216,-6
656,-3328,-768,1280,3072,5120,6656,8448,9728,9984,8960,7680,5632,4096,2816,1792,1024,256,-256,-
1024,-1280,-1024,-512,256,768,1280,1536,2048,2560,2816,3328,3328,2560,2048,256,-768,-2304,-
> 3328,-4864,-5888,-7424,-9216,-11264,-12544
>
> Int16 battery[SINE_TABLE_SIZE_battery] =
> {3072,3072,3840,4608,5376,5888,6144,7168
>
,8192,8192,8704,8192,6912,6400,5120,3328,1792,768,-512,-2304,-5376,-8192,-9216,-10240,-13568,-1
6128,-17920,-17152,-17664,-18944,-17152,-8960,-1792,1024,4608,10752,15360,16128,12800,10752,972
8,6400,1280,-2048,-3072,-3584,-4096,-3328,0,4608,8448,11264,14336,17920,18432,15616,13056,10240
,5888,1792,-1792,-4608,-4352,-3328,-3584,-4096,-3840,-4352,-5120,-8960,-9728,-11520,-15872,-192
00,-19712,-23296,-24832,-18432,-16896,-14336,-6400,512,3840,9472,14848,18176,17408,17664,16640,
12288,7168,4096,0,-3840,-6656,-6656,-6912,-6144,-3328,0,2304,5120,8448,10240,10752,11264,10752,
8704,6656,5120,2816,0,-2304,-4864,-7168,-8704,-11776,-15360,-17152,-18944,-22016,-23296,-18944,
-10752,-10752,-2304,6144,10240,11776,16384,16896,14848,10240,8960,3328,-2560,-5376,-6656,-9216,
-8960,-5888,-2048,256,4096,8960,11008,11776,12544,12544,10240,7424,6400,5888,2816,1792,2560,153
6,-768,-1792,-3328,-5120,-9472,-12032,-16128,-19712,-22528,-25344,-22784,-13312,-11520,
> -3328,5632,11008,13568,17152,17920,15872,1
>
> Int16 door[SINE_TABLE_SIZE_door] =
> {-256,0,256,512,768,1024,1280,1536
>
,1536,1792,1792,1792,1792,1792,1536,1536,1280,1280,1024,768,512,512,256,0,-256,-256,-512,-768,-
768,-1024,-1024,-1024,-1280,-1280,-1280,-1280,-1536,-1536,-1792,-2048,-2048,-2304,-2560,-2560,-
2304,-2048,-1792,-1280,-768,-256,0,512,1024,1536,1792,2048,2304,2560,2816,2816,2816,2816,2816,2
816,2816,2560,2560,2304,1792,1536,1280,1024,512,0,0,-256,-768,-1024,-1280,-1280,-1536,-1536,-15
36,-1792,-1792,-1792,-1792,-1792,-2048,-2048,-2304,-2304,-2560,-2560,-2560,-2304,-1792,-1280,-5
12,0,256,1024,1536,1792,2304,2560,2560,2816,2816,3072,3072,3072,3072,3072,2816,2816,2560,2304,1
792,1536,1280,768,512,0,-256,-768,-1024,-1280,-1536,-1792,-1792,-1792,-1792,-1792,-1536,-1536,-
1536,-1536,-1536,-1536,-1536,-1792,-2048,-2048,-2048,-1792,-1280,-768,-256,256,768,1536,1792,23
04,2560,2560,2816,2816,2816,2816,2816,2816,2816,2816,2560,2560,2304,2048,1792,1536,1024,768,256
,0,-256,-768,-1024,-1280,-1536,-1792,-1792,-1536,-1536,-1536,-1280,-1280,-1280,-1280,-1280,-1
> 280,-1536,-1792,-2048,-2304,-2304,-2048,-1
>
> Int16 warning[SINE_TABLE_SIZE_warning] =
> {-3328,-3584,-4352,-5120,-5376,-5120,-46
>
08,-3328,-1792,0,1536,3328,4864,5632,6144,6144,5632,4864,3840,2816,1280,512,-256,-1024,-1536,-1
792,-1536,-1280,-512,0,512,1280,1792,2304,2304,2304,1792,1280,256,-256,-1536,-3072,-4352,-5632,
-6912,-8192,-8704,-9472,-9472,-9216,-8448,-6656,-4096,-1024,2560,5888,9216,11776,12800,13312,12
032,10240,7680,4864,2048,-256,-2304,-4096,-5120,-5888,-5888,-5376,-4352,-2816,-1024,1024,3072,5
120,6400,7424,7680,6912,5632,3840,1792,-512,-3072,-5632,-7936,-9984,-11776,-12800,-13568,-13568
,-12544,-11520,-9728,-6656,-2816,1536,6656,10496,13568,15104,14592,13056,9984,6656,3328,256,-17
92,-3328,-4608,-5120,-5632,-5632,-4608,-3584,-1536,768,3584,6400,8448,9472,9472,8192,6400,3840,
1280,-768,-3072,-5376,-7680,-9728,-11776,-13568,-14080,-14080,-13056,-11520,-9728,-7680,-5888,-
3584,0,3584,7936,11520,13312,13824,11776,8960,5120,1536,-1024,-2560,-3072,-2816,-2816,-2816,-28
16,-3072,-2560,-1792,0,2304,4608,6656,8192,8448,7680,6400,4608,2560,512,-1792,-3840,-58
> 88,-7680,-8960,-10240,-10752,-10496,-9984,
>
> my device is tms320vc5510 dsk.
> i do not have external memory.
> but wat i can see to solve this problem is to put my size table into page 1 , 2 or
> page 3.but i dunno how ..please help.
> Jeff Brower <j...@signalogic.com> wrote:
>
>      Ang Teik Boon-
>
>      > i facing this error:
>      >
>      > [Linking...] "C:\CCStudio_v3.1\C5500\cgtools\bin\cl55"
-@"Debug.lkf"
>      > <Linking>      What's the value of SINE_TABLE_SIZE_light +
SINE_TABLE_SIZE_battery +
>      SINE_TABLE_SIZE_door + SINE_TABLE_SIZE_warning + SINE_TABLE_SIZE_low ?
>
>      What 55x device is this? It's possible you've declared too much .bss
>      section data,
>      so your other sections no longer fit. Do you have external memory
>      available? If so
>      you can force the sine tables into external mem, and keep them out of
>      .bss section
>
>      -Jeff
>
>      >> error: can't allocate .rtdx_data, size 00000250 (page 0) in DARAM
>      (avail:
>      000001a8)
>      >> error: can't allocate .sysstack, size 00000200 (page 0) in DARAM
>      (avail:
>      000001a8)
>      >> error: can't allocate .trace, size 00000200 (page 0) in DARAM (avail:
>      000001a8)
>      >> error: can't allocate .sysdata, size 00000178 (page 0) in DARAM
>      (avail:
>      00000028)
>      >> error: can't allocate .csldata, size 00000128 (page 0) in DARAM
>      (avail:
>      00000028)
>      >> error: can't allocate .LOG_system$buf, size 00000080 (page 0) in DARAM
>
>      (avail: 00000028)
>      >> error: can't allocate .pip, size 000000c8 (page 0) in DARAM (avail:
>      00000028)
>      >> error: can't allocate .const, size 000000a0 (page 0) in DARAM (avail:
>      00000028)
>      >> error: can't allocate .hst0, size 00000080 (page 0) in DARAM (avail:
>      00000028)
>      >> error: can't allocate .idl, size 00000020 (page 0) in DARAM (avail:
>      00000004)
>      >> error: can't allocate .log, size 00000014 (page 0) in DARAM (avail:
>      00000004)
>      >> error: can't allocate .sts, size 00000010 (page 0) in DARAM (avail:
>      00000004)
>      >> error: can't allocate .sys, size 00000010 (page 0) in DARAM (avail:
>      00000004)
>      >> error: can't allocate .args, size 00000010 (page 0) in DARAM (avail:
>      00000004)
>      >> error: can't allocate .hst1, size 00000010 (page 0) in DARAM (avail:
>      00000004)
>      >> error: can't allocate .clk, size 00000008 (page 0) in DARAM (avail:
>      00000004)
>      >> error: errors in input - ./Debug/tone.out not build.
>
>      //the coding whose cause this error is the below:
>



(You need to be a member of c55x -- send a blank email to c55x-subscribe@yahoogroups.com )

Re: Buil error - Ang Teik Boon - Mar 18 8:31:58 2007

Sorry Jeff, 
this is the size of my data.
#define SINE_TABLE_SIZE_battery 3088
#define SINE_TABLE_SIZE_light 1669
#define SINE_TABLE_SIZE_door 2990
#define SINE_TABLE_SIZE_warning 3083
#define SINE_TABLE_SIZE_low 2717
#define SINE_TABLE_SIZE_notclose 5689
#define SINE_TABLE_SIZE_ison 2908
#define SINE_TABLE_SIZE_welcome 4075
#define SINE_TABLE_SIZE_deny 1477
#define SINE_TABLE_SIZE_verify 3088
 #define SINE_TABLE_SIZE_pass 1669

when i add up all the sinetable, it is about 32453 of words.so it almost 32k words that i want
to locate.When i check the internal memory, DARAM size of tmsvc5510 dsk, it has 8 daram blok
with 4k words each  and 32 SARAM block resulting 160K for internal memory.
Jeff Brower <j...@signalogic.com> wrote:                                    Ang- 
First, regarding amount of memory you're allocating, you didn't answer my question.  If you
don't answer the question I can't help. 
Second, DSK 5510 card does have external memory (SDRAM, look on the card for U24). 
Also, please reply to the group.  My job only permits me to reply via the group. 
-Jeff 
  
Ang Teik Boon wrote: 
hi Jeff: 
the data is like this: 
Int16 light[SINE_TABLE_SIZE_light] = 
{-768,-512,-768,-1280,-2304,-3328,-4608,-5120,-4864,-4352,-3072,-2048,-1024,-256,512,1792,3072,
4096,5120,5376,5376,4864,4352,3840,3072,2560,1792,768,0,-256,-1024,-1280,-1792,-1792,-1792,-153
6,-1024,-768,0,768,1536,2304,2560,2816,2816,2048,1536,256,-768,-2560,-4352,-5888,-7168,-8448,-9
216,-9728,-9216,-7680,-5888,-3328,-768,1024,2816,4352,5888,7424,7936,8192,7424,6144,4864,3328,2
304,1024,0,-768,-1536,-2048,-2304,-2048,-1280,-512,0,512,1280,2048,2816,3328,3840,3840,3584,281
6,1792,512,-768,-2304,-3840,-5888,-7680,-9216,-10752,-11776,-11520,-10496,-8448,-5632,-2816,-25
6,1792,3584,5632,7168,8704,9472,9472,8704,7424,6144,4608,3840,2560,1536,512,-256,-768,-1024,-10
24,-768,-768,-512,0,0,256,512,768,1024,1280,1024,512,0,-768,-2048,-3072,-4352,-5376,-6912,-8192
,-9984,-11008,-12032,-11008,-9216,-6656,-3328,-768,1280,3072,5120,6656,8448,9728,9984,8960,7680
,5632,4096,2816,1792,1024,256,-256,-1024,-1280,-1024,-512,256,768,1280,1536,2048,2560,2816,3328
,3328,2560,2048,256,-768,-2304,-
 3328,-4864,-5888,-7424,-9216,-11264,-12544 Int16 battery[SINE_TABLE_SIZE_battery] = 
{3072,3072,3840,4608,5376,5888,6144,7168,8192,8192,8704,8192,6912,6400,5120,3328,1792,768,-512,
-2304,-5376,-8192,-9216,-10240,-13568,-16128,-17920,-17152,-17664,-18944,-17152,-8960,-1792,102
4,4608,10752,15360,16128,12800,10752,9728,6400,1280,-2048,-3072,-3584,-4096,-3328,0,4608,8448,1
1264,14336,17920,18432,15616,13056,10240,5888,1792,-1792,-4608,-4352,-3328,-3584,-4096,-3840,-4
352,-5120,-8960,-9728,-11520,-15872,-19200,-19712,-23296,-24832,-18432,-16896,-14336,-6400,512,
3840,9472,14848,18176,17408,17664,16640,12288,7168,4096,0,-3840,-6656,-6656,-6912,-6144,-3328,0
,2304,5120,8448,10240,10752,11264,10752,8704,6656,5120,2816,0,-2304,-4864,-7168,-8704,-11776,-1
5360,-17152,-18944,-22016,-23296,-18944,-10752,-10752,-2304,6144,10240,11776,16384,16896,14848,
10240,8960,3328,-2560,-5376,-6656,-9216,-8960,-5888,-2048,256,4096,8960,11008,11776,12544,12544
,10240,7424,6400,5888,2816,1792,2560,1536,-768,-1792,-3328,-5120,-9472,-12032,-16128,-19712,-22
528,-25344,-22784,-13312,-11520,
 -3328,5632,11008,13568,17152,17920,15872,1 
Int16 door[SINE_TABLE_SIZE_door] = 
{-256,0,256,512,768,1024,1280,1536,1536,1792,1792,1792,1792,1792,1536,1536,1280,1280,1024,768,5
12,512,256,0,-256,-256,-512,-768,-768,-1024,-1024,-1024,-1280,-1280,-1280,-1280,-1536,-1536,-17
92,-2048,-2048,-2304,-2560,-2560,-2304,-2048,-1792,-1280,-768,-256,0,512,1024,1536,1792,2048,23
04,2560,2816,2816,2816,2816,2816,2816,2816,2560,2560,2304,1792,1536,1280,1024,512,0,0,-256,-768
,-1024,-1280,-1280,-1536,-1536,-1536,-1792,-1792,-1792,-1792,-1792,-2048,-2048,-2304,-2304,-256
0,-2560,-2560,-2304,-1792,-1280,-512,0,256,1024,1536,1792,2304,2560,2560,2816,2816,3072,3072,30
72,3072,3072,2816,2816,2560,2304,1792,1536,1280,768,512,0,-256,-768,-1024,-1280,-1536,-1792,-17
92,-1792,-1792,-1792,-1536,-1536,-1536,-1536,-1536,-1536,-1536,-1792,-2048,-2048,-2048,-1792,-1
280,-768,-256,256,768,1536,1792,2304,2560,2560,2816,2816,2816,2816,2816,2816,2816,2816,2560,256
0,2304,2048,1792,1536,1024,768,256,0,-256,-768,-1024,-1280,-1536,-1792,-1792,-1536,-1536,-1536,
-1280,-1280,-1280,-1280,-1280,-1
 280,-1536,-1792,-2048,-2304,-2304,-2048,-1 
Int16 warning[SINE_TABLE_SIZE_warning] = 
{-3328,-3584,-4352,-5120,-5376,-5120,-4608,-3328,-1792,0,1536,3328,4864,5632,6144,6144,5632,486
4,3840,2816,1280,512,-256,-1024,-1536,-1792,-1536,-1280,-512,0,512,1280,1792,2304,2304,2304,179
2,1280,256,-256,-1536,-3072,-4352,-5632,-6912,-8192,-8704,-9472,-9472,-9216,-8448,-6656,-4096,-
1024,2560,5888,9216,11776,12800,13312,12032,10240,7680,4864,2048,-256,-2304,-4096,-5120,-5888,-
5888,-5376,-4352,-2816,-1024,1024,3072,5120,6400,7424,7680,6912,5632,3840,1792,-512,-3072,-5632
,-7936,-9984,-11776,-12800,-13568,-13568,-12544,-11520,-9728,-6656,-2816,1536,6656,10496,13568,
15104,14592,13056,9984,6656,3328,256,-1792,-3328,-4608,-5120,-5632,-5632,-4608,-3584,-1536,768,
3584,6400,8448,9472,9472,8192,6400,3840,1280,-768,-3072,-5376,-7680,-9728,-11776,-13568,-14080,
-14080,-13056,-11520,-9728,-7680,-5888,-3584,0,3584,7936,11520,13312,13824,11776,8960,5120,1536
,-1024,-2560,-3072,-2816,-2816,-2816,-2816,-3072,-2560,-1792,0,2304,4608,6656,8192,8448,7680,64
00,4608,2560,512,-1792,-3840,-58
 88,-7680,-8960,-10240,-10752,-10496,-9984, 
my device is tms320vc5510 dsk. 
i do not have external memory. 
but wat i can see to solve this problem is to put my size table into page 1 , 2 or page 3.but i
dunno how ..please help. 
  
Jeff Brower <j...@signalogic.com> wrote: 
 Ang Teik Boon- > i facing this error: 
> 
> [Linking...] "C:\CCStudio_v3.1\C5500\cgtools\bin\cl55" -@"Debug.lkf" 
> <Linking> 
What's the value of SINE_TABLE_SIZE_light + SINE_TABLE_SIZE_battery + 
SINE_TABLE_SIZE_door + SINE_TABLE_SIZE_warning + SINE_TABLE_SIZE_low ? 
What 55x device is this? It's possible you've declared too much .bss section data, 
so your other sections no longer fit. Do you have external memory available? If so 
you can force the sine tables into external mem, and keep them out of .bss section 
-Jeff 
>> error: can't allocate .rtdx_data, size 00000250 (page 0) in DARAM (avail: 
000001a8) 
>> error: can't allocate .sysstack, size 00000200 (page 0) in DARAM (avail: 
000001a8) 
>> error: can't allocate .trace, size 00000200 (page 0) in DARAM (avail: 
000001a8) 
>> error: can't allocate .sysdata, size 00000178 (page 0) in DARAM (avail: 
00000028) 
>> error: can't allocate .csldata, size 00000128 (page 0) in DARAM (avail: 
00000028) 
>> error: can't allocate .LOG_system$buf, size 00000080 (page 0) in DARAM 
(avail: 00000028) 
>> error: can't allocate .pip, size 000000c8 (page 0) in DARAM (avail: 
00000028) 
>> error: can't allocate .const, size 000000a0 (page 0) in DARAM (avail: 
00000028) 
>> error: can't allocate .hst0, size 00000080 (page 0) in DARAM (avail: 
00000028) 
>> error: can't allocate .idl, size 00000020 (page 0) in DARAM (avail: 
00000004) 
>> error: can't allocate .log, size 00000014 (page 0) in DARAM (avail: 
00000004) 
>> error: can't allocate .sts, size 00000010 (page 0) in DARAM (avail: 
00000004) 
>> error: can't allocate .sys, size 00000010 (page 0) in DARAM (avail: 
00000004) 
>> error: can't allocate .args, size 00000010 (page 0) in DARAM (avail: 
00000004) 
>> error: can't allocate .hst1, size 00000010 (page 0) in DARAM (avail: 
00000004) 
>> error: can't allocate .clk, size 00000008 (page 0) in DARAM (avail: 
00000004) 
>> error: errors in input - ./Debug/tone.out not build. 
//the coding whose cause this error is the below:



(You need to be a member of c55x -- send a blank email to c55x-subscribe@yahoogroups.com )

Re: Buil error - Jeff Brower - Mar 19 17:56:07 2007

Ang Teik Boon-
> Sorry Jeff,
> this is the size of my data.
> #define SINE_TABLE_SIZE_battery 3088
> #define SINE_TABLE_SIZE_light 1669
> #define SINE_TABLE_SIZE_door 2990
> #define SINE_TABLE_SIZE_warning 3083
> #define SINE_TABLE_SIZE_low 2717
> #define SINE_TABLE_SIZE_notclose 5689
> #define SINE_TABLE_SIZE_ison 2908
> #define SINE_TABLE_SIZE_welcome 4075
> #define SINE_TABLE_SIZE_deny 1477
> #define SINE_TABLE_SIZE_verify 3088
> #define SINE_TABLE_SIZE_pass 1669
>
> when i add up all the sinetable, it is about 32453 of words.so it almost 32k words
> that i want to locate.When i check the internal memory, DARAM size of tmsvc5510
> dsk, it has 8 daram blok with 4k words each  and 32 SARAM block resulting 160K for
> internal memory.

The linker is not going to use the additional onchip memory for you, which is why
your 32453 words of data are competing with everything for available data (.bss)
memory.  You have to define the additional blocks as available for .bss data in your
linker .cmd file.

Another alternative is to declare your data with "const", then the linker will look
for code memory (.const section, not .bss) to place the tables.

-Jeff
> Jeff Brower <j...@signalogic.com> wrote:
>
>      Ang-First, regarding amount of memory you're allocating, you didn't
>      answer my question.  If you don't answer the question I can't
>      help.Second, DSK 5510 card does have external memory (SDRAM, look on the
>      card for U24).Also, please reply to the group.  My job only permits me to
>      reply via the group.-Jeff
>       Ang Teik Boon wrote:
>
>     > hi Jeff:
>     > the data is like this:
>     > Int16 light[SINE_TABLE_SIZE_light] =
>     > {-768,-512,-768,-1280,-2304,-3328,-4608,-5120,-4864,-4352,-3072,-2048,
>     > -1024,-256,512,1792,3072,4096,5120,5376,5376,4864,4352,3840,3072,2560,
>     > 1792,768,0,-256,-1024,-1280,-1792,-1792,-1792,-1536,-1024,-768,0,768,
>     > 1536,2304,2560,2816,2816,2048,1536,256,-768,-2560,-4352,-5888,
>     > -7168,-8448,-9216,-9728,-9216,-7680,-5888,-3328,-768,1024,2816,4352,
>     > 5888,7424,7936,8192,7424,6144,4864,3328,2304,1024,0,-768,-1536,
>     > -2048,-2304,-2048,-1280,-512,0,512,1280,2048,2816,3328,3840,3840,
>     > 3584,2816,1792,512,-768,-2304,-3840,-5888,-7680,-9216,-10752,-11776,
>     > -11520,-10496,-8448,-5632,-2816,-256,1792,3584,5632,7168,8704,9472,
>     > 9472,8704,7424,6144,4608,3840,2560,1536,512,-256,-768,-1024,-1024,-768,
>     > -768,-512,0,0,256,512,768,1024,1280,1024,512,0,-768,-2048,-3072,
>     > -4352,-5376,-6912,-8192,-9984,-11008,-12032,-11008,-9216,-6656,
>     > -3328,-768,1280,3072,5120,6656,8448,9728,9984,8960,7680,5632,4096,2816,
>     > 1792,1024,256,-256,-1024,-1280,-1024,-512,256,768,1280,1536,2048,
>     > 2560,2816,3328,3328,2560,2048,256,-768,-2304,- 3328,-4864,-5888,-7424,
>     > -9216,-11264,-12544Int16 battery[SINE_TABLE_SIZE_battery] =
>     > {3072,3072,3840,4608,5376,5888,6144,7168,8192,8192,8704,8192,6912,
>     > 6400,5120,3328,1792,768,-512,-2304,-5376,-8192,-9216,-10240,-13568,
>     > -16128,-17920,-17152,-17664,-18944,-17152,-8960,-1792,1024,4608,
>     > 10752,15360,16128,12800,10752,9728,6400,1280,-2048,-3072,-3584,-4096,
>     > -3328,0,4608,8448,11264,14336,17920,18432,15616,13056,10240,5888,1792,
>     > -1792,-4608,-4352,-3328,-3584,-4096,-3840,-4352,-5120,-8960,
>     > -9728,-11520,-15872,-19200,-19712,-23296,-24832,-18432,-16896,-14336,
>     > -6400,512,3840,9472,14848,18176,17408,17664,16640,12288,7168,4096,
>     > 0,-3840,-6656,-6656,-6912,-6144,-3328,0,2304,5120,8448,10240,10752,
>     > 11264,10752,8704,6656,5120,2816,0,-2304,-4864,-7168,-8704,-11776,
>     > -15360,-17152,-18944,-22016,-23296,-18944,-10752,-10752,-2304,6144,
>     > 10240,11776,16384,16896,14848,10240,8960,3328,-2560,-5376,-6656,-9216,
>     > -8960,-5888,-2048,256,4096,8960,11008,11776,12544,12544,10240,7424,
>     > 6400,5888,2816,1792,2560,1536,-768,-1792,-3328,-5120,-9472,-12032,
>     > -16128,-19712,-22528,-25344,-22784,-13312,-11520, -3328,5632,11008,
>     > 13568,17152,17920,15872,1Int16 door[SINE_TABLE_SIZE_door] =
>     > {-256,0,256,512,768,1024,1280,1536,1536,1792,1792,1792,1792,1792,
>     > 1536,1536,1280,1280,1024,768,512,512,256,0,-256,-256,-512,-768,
>     > -768,-1024,-1024,-1024,-1280,-1280,-1280,-1280,-1536,-1536,-1792,-2048,
>     > -2048,-2304,-2560,-2560,-2304,-2048,-1792,-1280,-768,-256,0,512,1024,
>     > 1536,1792,2048,2304,2560,2816,2816,2816,2816,2816,2816,2816,2560,2560,
>     > 2304,1792,1536,1280,1024,512,0,0,-256,-768,-1024,-1280,-1280,
>     > -1536,-1536,-1536,-1792,-1792,-1792,-1792,-1792,-2048,-2048,
>     > -2304,-2304,-2560,-2560,-2560,-2304,-1792,-1280,-512,0,256,1024,1536,
>     > 1792,2304,2560,2560,2816,2816,3072,3072,3072,3072,3072,2816,2816,2560,
>     > 2304,1792,1536,1280,768,512,0,-256,-768,-1024,-1280,-1536,-1792,
>     > -1792,-1792,-1792,-1792,-1536,-1536,-1536,-1536,-1536,-1536,
>     > -1536,-1792,-2048,-2048,-2048,-1792,-1280,-768,-256,256,768,1536,
>     > 1792,2304,2560,2560,2816,2816,2816,2816,2816,2816,2816,2816,2560,2560,
>     > 2304,2048,1792,1536,1024,768,256,0,-256,-768,-1024,-1280,-1536,
>     > -1792,-1792,-1536,-1536,-1536,-1280,-1280,-1280,-1280,-1280,-1
>     > 280,-1536,-1792,-2048,-2304,-2304,-2048,-1Int16 warning[SINE_
>     > TABLE_SIZE_warning] =
>     > {-3328,-3584,-4352,-5120,-5376,-5120,-4608,-3328,-1792,0,1536,
>     > 3328,4864,5632,6144,6144,5632,4864,3840,2816,1280,512,-256,-1024,-1536,
>     > -1792,-1536,-1280,-512,0,512,1280,1792,2304,2304,2304,1792,1280,
>     > 256,-256,-1536,-3072,-4352,-5632,-6912,-8192,-8704,-9472,-9472,-9216,
>     > -8448,-6656,-4096,-1024,2560,5888,9216,11776,12800,13312,12032,10240,
>     > 7680,4864,2048,-256,-2304,-4096,-5120,-5888,-5888,-5376,-4352,-2816,
>     > -1024,1024,3072,5120,6400,7424,7680,6912,5632,3840,1792,-512,
>     > -3072,-5632,-7936,-9984,-11776,-12800,-13568,-13568,-12544,-11520,
>     > -9728,-6656,-2816,1536,6656,10496,13568,15104,14592,13056,9984,6656,
>     > 3328,256,-1792,-3328,-4608,-5120,-5632,-5632,-4608,-3584,-1536,768,
>     > 3584,6400,8448,947 2,9472,8192,6400,3840,1280,-768,-3072,-5376,
>     > -7680,-9728,-11776,-13568,-14080,-14080,-13056,-11520,-9728,-7680,
>     > -5888,-3584,0,3584,7936,11520,13312,13824,11776,8960,5120,1536,-1024,
>     > -2560,-3072,-2816,-2816,-2816,-2816,-3072,-2560,-1792,0,2304,4608,6656,
>     > 8192,8448,7680,6400,4608,2560,512,-1792,-3840,-58 88,-7680,-8960,
>     > -10240,-10752,-10496,-9984,my device is tms320vc5510 dsk.
>     > i do not have external memory.
>     > but wat i can see to solve this problem is to put my size table into
>     > page 1 , 2 or page 3.but i dunno how ..please help.
>     >  Jeff Brower <j...@signalogic.com> wrote:
>     >
>     >      Ang Teik Boon-> i facing this error:
>     >      >
>     >      > [Linking...] "C:\CCStudio_v3.1\C5500\cgtools\bin\cl55"
>     >      -@"Debug.lkf"
>     >      > <Linking>What's the value of SINE_TABLE_SIZE_light +
>     >      SINE_TABLE_SIZE_battery +
>     >      SINE_TABLE_SIZE_door + SINE_TABLE_SIZE_warning +
>     >      SINE_TABLE_SIZE_low ?What 55x device is this? It's possible
>     >      you've declared too much .bss section data,
>     >      so your other sections no longer fit. Do you have external
>     >      memory available? If so
>     >      you can force the sine tables into external mem, and keep
>     >      them out of .bss section-Jeff>> error: can't allocate
>     >      .rtdx_data, size 00000250 (page 0) in DARAM (avail:
>     >      000001a8)
>     >      >> error: can't allocate .sysstack, size 00000200 (page 0) in
>     >      DARAM (avail:
>     >      000001a8)
>     >      >> error: can't allocate .trace, size 00000200 (page 0) in
>     >      DARAM (avail:
>     >      000001a8)
>     >      >> error: can't allocate .sysdata, size 00000178 (page 0) in
>     >      DARAM (avail:
>     >      00000028)
>     >      >> error: can't allocate .csldata, size 00000128 (page 0) in
>     >      DARAM (avail:
>     >      00000028)
>     >      >> error: can't allocate .LOG_system$buf, size 00000080 (page
>     >      0) in DARAM
>     >      (avail: 00000028)
>     >      >> error: can't allocate .pip, size 000000c8 (page 0) in
>     >      DARAM (avail:
>     >      00000028)
>     >      >> error: can't allocate .const, size 000000a0 (page 0) in
>     >      DARAM (avail:
>     >      00000028)
>     >      >> error: can't allocate .hst0, size 00000080 (page 0) in
>     >      DARAM (avail:
>     >      00000028)
>     >      >> error: can't allocate .idl, size 00000020 (page 0) in
>     >      DARAM (avail:
>     >      00000004)
>     >      >> error: can't allocate .log, size 00000014 (page 0) in
>     >      DARAM (avail:
>     >      00000004)
>     >      >> error: can't allocate .sts, size 00000010 (page 0) in
>     >       DARAM (avail:
>     >      00000004)
>     >      >> error: can't allocate .sys, size 00000010 (page 0) in
>     >      DARAM (avail:
>     >      00000004)
>     >      >> error: can't allocate .args, size 00000010 (page 0) in
>     >      DARAM (avail:
>     >      00000004)
>     >      >> error: can't allocate .hst1, size 00000010 (page 0) in
>     >      DARAM (avail:
>     >      00000004)
>     >      >> error: can't allocate .clk, size 00000008 (page 0) in
>     >      DARAM (avail:
>     >      00000004)
>     >      >> error: errors in input - ./Debug/tone.out not build.//the
>     >      coding whose cause this error is the below:
>     >



(You need to be a member of c55x -- send a blank email to c55x-subscribe@yahoogroups.com )

Re: flash burn - Ang Teik Boon - Mar 28 8:02:31 2007

Hi, i am Ang here.now i change the .bss into SDRAM.and it can build. But when i try to
burn the my program into flash.It got no error but got no desire output.
can u know why?i suspect because i put my sound data into SDRAM.,

Jeff Brower <j...@signalogic.com> wrote:   Ang Teik Boon- 
  Sorry Jeff, 
this is the size of my data. 
#define SINE_TABLE_SIZE_battery 3088 
#define SINE_TABLE_SIZE_light 1669 
#define SINE_TABLE_SIZE_door 2990 
#define SINE_TABLE_SIZE_warning 3083 
#define SINE_TABLE_SIZE_low 2717 
#define SINE_TABLE_SIZE_notclose 5689 
#define SINE_TABLE_SIZE_ison 2908 
#define SINE_TABLE_SIZE_welcome 4075 
#define SINE_TABLE_SIZE_deny 1477 
#define SINE_TABLE_SIZE_verify 3088 
#define SINE_TABLE_SIZE_pass 1669 when i add up all the sinetable, it is about 32453 of
words.so it almost 32k words that i want to locate.When i check the internal memory, DARAM size
of tmsvc5510 dsk, it has 8 daram blok with 4k words each  and 32 SARAM block resulting 160K for
internal memory.
 The linker is not going to use the additional onchip memory for you, which is why your 32453
words of data are competing with everything for available data (.bss) memory.  You have to
define the additional blocks as available for .bss data in your linker .cmd file. Another
alternative is to declare your data with "const", then the linker will look for code
memory (.const section, not .bss) to place the tables. 
-Jeff 
  
Jeff Brower <j...@signalogic.com> wrote:    Ang-First, regarding amount of memory you're
allocating, you didn't answer my question.  If you don't answer the question I can't
help.Second, DSK 5510 card does have external memory (SDRAM, look on the card for U24).Also,
please reply to the group.  My job only permits me to reply via the group.-Jeff 
 Ang Teik Boon wrote: hi Jeff: 
the data is like this: 
Int16 light[SINE_TABLE_SIZE_light] = 
{-768,-512,-768,-1280,-2304,-3328,-4608,-5120,-4864,-4352,-3072,-2048,-1024,-256,512,1792,3072,
4096,5120,5376,5376,4864,4352,3840,3072,2560,1792,768,0,-256,-1024,-1280,-1792,-1792,-1792,-153
6,-1024,-768,0,768,1536,2304,2560,2816,2816,2048,1536,256,-768,-2560,-4352,-5888,-7168,-8448,-9
216,-9728,-9216,-7680,-5888,-3328,-768,1024,2816,4352,5888,7424,7936,8192,7424,6144,4864,3328,2
304,1024,0,-768,-1536,-2048,-2304,-2048,-1280,-512,0,512,1280,2048,2816,3328,3840,3840,3584,281
6,1792,512,-768,-2304,-3840,-5888,-7680,-9216,-10752,-11776,-11520,-10496,-8448,-5632,-2816,-25
6,1792,3584,5632,7168,8704,9472,9472,8704,7424,6144,4608,3840,2560,1536,512,-256,-768,-1024,- 
1024,-768,
-768,-512,0,0,256,512,768,1024,1280,1024,512,0,-768,-2048,-3072,-4352,-5376,-6912,-8192,-9984,-
11008,-12032,-11008,-9216,-6656,-3328,-768,1280,3072,5120,6656,8448,9728,9984,8960,7680,5632,40
96,2816,1792,1024,256,-256,-1024,-1280,-1024,-512,256,768,1280,1536,2048,2560,2816,3328,3328,25
60,2048,256,-768,-2304,-
 3328,-4864,-5888,-7424,-9216,-11264,-12544Int16 battery[SINE_TABLE_SIZE_battery] = 
{3072,3072,3840,4608,5376,5888,6144,7168,8192,8192,8704,8192,6912,6400,5120,3328,1792,768,-512,
-2304,-5376,-8192,-9216,-10240,-13568,-16128,-17920,-17152,-17664,-18944,-17152,-8960,-1792,102
4,4608,10752,15360,16128,12800,10752,9728,6400,1280,-2048,-3072,-3584,-4096,-3328,0,4608,8448,1
1264,14336,17920,18432,15616,13056,10240,5888,1792,-1792,-4608,-4352,-3328,-3584,-4096,-3840,-4
352,-5120,-8960,-9728,-11520,-15872,-19200,-19712,-23296,-24832,-18432,-16896,-14336,-6400,512,
3840,9472,14848,18176,17408,17664,16640,12288,7168,4096,0,-3840,-6656,-6656,-6912,-6144,-3328,0
,2304,5120,8448,10240,10752,11264,10752,8704,6656,5120,2816,0,-2304,-4864,-7168,-8704,-11776,-1
5360,-17152,- 
18944,-22016,-23296,-18944,-10752,-10752,-2304,6144,10240,11776,16384,16896,14848,10240,8960,33
28,-2560,-5376,-6656,-9216,-8960,-5888,-2048,256,4096,8960,11008,11776,12544,12544,10240,7424,6
400,5888,2816,1792,2560,1536,-768,-1792,-3328,-5120,-9472,-12032,-16128,-19712,-22528,-25344,-2
2784,-13312,-11520,
 -3328,5632,11008,13568,17152,17920,15872,1Int16 door[SINE_TABLE_SIZE_door] = 
{-256,0,256,512,768,1024,1280,1536,1536,1792,1792,1792,1792,1792,1536,1536,1280,1280,1024,768,5
12,512,256,0,-256,-256,-512,-768,-768,-1024,-1024,-1024,-1280,-1280,-1280,-1280,-1536,-1536,-17
92,-2048,-2048,-2304,-2560,-2560,-2304,-2048,-1792,-1280,-768,-256,0,512,1024,1536,1792,2048,23
04,2560,2816,2816,2816,2816,2816,2816,2816,2560,2560,2304,1792,1536,1280,1024,512,0,0,-256,-768
,-1024,-1280,-1280,-1536,-1536,-1536,-1792,-1792,-1792,-1792,-1792,-2048,-2048,-2304,-2304,-256
0,-2560,-2560,-2304,-1792,-1280,-512,0,256,1024,1536,1792,2304,2560,2560,2816,2816,3072,3072,30
72,3072,3072,2816,2816,2560,2304,1792,1536,1280,768,512,0,-256,-768,-1024,-1280,-1536,-1792,- 
1792,-1792,-1792,-1792,-1536,-1536,-1536,-1536,-1536,-1536,-1536,-1792,-2048,-2048,-2048,-1792,
-1280,-768,-256,256,768,1536,1792,2304,2560,2560,2816,2816,2816,2816,2816,2816,2816,2816,2560,2
560,2304,2048,1792,1536,1024,768,256,0,-256,-768,-1024,-1280,-1536,-1792,-1792,-1536,-1536,-153
6,-1280,-1280,-1280,-1280,-1280,-1
 280,-1536,-1792,-2048,-2304,-2304,-2048,-1Int16 warning[SINE_TABLE_SIZE_warning] = 
{-3328,-3584,-4352,-5120,-5376,-5120,-4608,-3328,-1792,0,1536,3328,4864,5632,6144,6144,5632,486
4,3840,2816,1280,512,-256,-1024,-1536,-1792,-1536,-1280,-512,0,512,1280,1792,2304,2304,2304,179
2,1280,256,-256,-1536,-3072,-4352,-5632,-6912,-8192,-8704,-9472,-9472,-9216,-8448,-6656,-4096,-
1024,2560,5888,9216,11776,12800,13312,12032,10240,7680,4864,2048,-256,-2304,-4096,-5120,-5888,-
5888,-5376,-4352,-2816,-1024,1024,3072,5120,6400,7424,7680,6912,5632,3840,1792,-512,-3072,-5632
,-7936,-9984,-11776,-12800,-13568,-13568,-12544,-11520,-9728,-6656,-2816,1536,6656,10496,13568,
15104,14592,13056,9984,6656,3328,256,-1792,-3328,-4608,-5120,-5632,-5632,-4608,-3584,-1536,768,
3584,640  0,8448,947
2,9472,8192,6400,3840,1280,-768,-3072,-5376,-7680,-9728,-11776,-13568,-14080,-14080,-13056,-115
20,-9728,-7680,-5888,-3584,0,3584,7936,11520,13312,13824,11776,8960,5120,1536,-1024,-2560,-3072
,-2816,-2816,-2816,-2816,-3072,-2560,-1792,0,2304,4608,6656,8192,8448,7680,6400,4608,2560,512,-
1792,-3840,-58
 88,-7680,-8960,-10240,-10752,-10496,-9984,my device is tms320vc5510 dsk. 
i do not have external memory. 
but wat i can see to solve this problem is to put my size table into page 1 , 2 or page 3.but i
dunno how ..please help. 
 Jeff Brower <j...@signalogic.com> wrote:  Ang Teik Boon-> i facing this error: 
> 
> [Linking...] "C:\CCStudio_v3.1\C5500\cgtools\bin\cl55" -@"Debug.lkf" 
> <Linking>What's the value of SINE_TABLE_SIZE_light + SINE_TABLE_SIZE_battery + 
SINE_TABLE_SIZE_door + SINE_TABLE_SIZE_warning + SINE_TABLE_SIZE_low ?What 55x device is this?
It's possible you've declared too much .bss section data, 
so your other sections no longer fit. Do you have external memory available? If so 
you can force the sine tables into external mem, and keep them out of .bss section-Jeff>>
error: can't allocate .rtdx_data, size 00000250 (page 0) in DARAM (avail: 
000001a8) 
>> error: can't allocate .sysstack, size 00000200 (page 0) in DARAM (avail: 
000001a8) 
>> error: can't allocate .trace, size 00000200 (page 0) in DARAM (avail: 
000001a8) 
>> error: can't allocate .sysdata, size 00000178 (page 0) in DARAM (avail: 
00000028) 
>> error: can't allocate .csldata, size 00000128 (page 0) in DARAM (avail: 
00000028) 
>> error: can't allocate .LOG_system$buf, size 00000080 (page 0) in DARAM 
(avail: 00000028) 
>> error: can't allocate .pip, size 000000c8 (page 0) in DARAM (avail: 
00000028) 
>> error: can't allocate .const, size 000000a0 (page 0) in DARAM (avail: 
00000028) 
>> error: can't allocate .hst0, size 00000080 (page 0) in DARAM (avail: 
00000028) 
>> error: can't allocate .idl, size 00000020 (page 0) in DARAM (avail: 
00000004) 
>> error: can't allocate .log, size 00000014 (page 0) in DARAM (avail: 
00000004) 
>> error: can't allocate .sts, size 00000010 (page 0) in DARAM (avail: 
00000004) 
>> error: can't allocate .sys, size 00000010 (page 0) in DARAM (avail: 
00000004) 
>> error: can't allocate .args, size 00000010 (page 0) in DARAM (avail: 
00000004) 
>> error: can't allocate .hst1, size 00000010 (page 0) in DARAM (avail: 
00000004) 
>> error: can't allocate .clk, size 00000008 (page 0) in DARAM (avail: 
00000004) 
>> error: errors in input - ./Debug/tone.out not build.//the coding whose cause this
error is the below:



(You need to be a member of c55x -- send a blank email to c55x-subscribe@yahoogroups.com )