author | William Roberts <williamr@symbian.org> |
Wed, 10 Nov 2010 12:08:34 +0000 | |
branch | RCL_3 |
changeset 76 | 5c9f0ba5102a |
parent 56 | d48ab3b357f1 |
permissions | -rw-r--r-- |
56 | 1 |
/* |
2 |
* |
|
3 |
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
4 |
* All rights reserved. |
|
5 |
* |
|
6 |
* Redistribution and use in source and binary forms, with or without modification, |
|
7 |
* are permitted provided that the following conditions are met: |
|
8 |
* |
|
9 |
* Redistributions of source code must retain the above copyright notice, |
|
10 |
* this list of conditions and the following disclaimer. |
|
11 |
* |
|
12 |
* Redistributions in binary form must reproduce the above copyright notice, |
|
13 |
* this list of conditions and the following disclaimer in the documentation |
|
14 |
* and/or other materials provided with the distribution. |
|
15 |
* |
|
16 |
* Neither the name of Nokia Corporation nor the names of its contributors |
|
17 |
* may be used to endorse or promote products derived from this software |
|
18 |
* without specific prior written permission. |
|
19 |
* |
|
20 |
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY |
|
21 |
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
|
22 |
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT |
|
23 |
* SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
|
24 |
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT |
|
25 |
* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
|
26 |
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
|
27 |
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, |
|
28 |
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
29 |
* |
|
30 |
*/ |
|
31 |
||
0
2f259fa3e83a
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
32 |
#ifndef LOOKUP_TABLES_H_ |
2f259fa3e83a
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
33 |
#define LOOKUP_TABLES_H_ |
2f259fa3e83a
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
34 |
|
2f259fa3e83a
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
35 |
#include <ode/config.h> |
2f259fa3e83a
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
36 |
|
2f259fa3e83a
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
37 |
static const int64 sin_table[450] = {0,1143,2287,3429,4571,5711,6850,7986,9120,10252,11380,12504,13625,14742,15854,16961,18064,19160,20251,21336,22414,23485,24550,25606,26655,27696,28729,29752,30767,31772,32767,33753,34728,35693,36647,37589,38521,39440,40347,41243,42125,42995,43852,44695,45525,46340,47142,47929,48702,49460,50203,50931,51643,52339,53019,53683,54331,54963,55577,56175,56755,57319,57864,58392,58903,59395,59870,60326,60763,61183,61583,61965,62328,62672,62997,63302,63589,63856,64103,64331,64540,64729,64898,65047,65176,65286,65376,65446,65496,65526,65535,65526,65496,65446,65376,65286,65176,65047,64898,64729,64540,64331,64103,63856,63589,63302,62997,62672,62328,61965,61583,61183,60763,60326,59870,59395,58903,58393,57864,57319,56755,56175,55577,54963,54331,53684,53019,52339,51643,50931,50203,49460,48702,47930,47142,46341,45525,44695,43852,42995,42125,41243,40348,39440,38521,37590,36647,35693,34728,33753,32768,31772,30767,29752,28729,27696,26656,25607,24550,23486,22414,21336,20251,19161,18064,16962,15854,14742,13625,12505,11380,10252,9121,7986,6850,5712,4571,3430,2287,1143,0,-1143,-2286,-3429,-4571,-5711,-6850,-7986,-9120,-10251,-11380,-12504,-13625,-14742,-15854,-16961,-18063,-19160,-20251,-21336,-22414,-23485,-24550,-25606,-26655,-27696,-28728,-29752,-30767,-31772,-32767,-33753,-34728,-35693,-36647,-37589,-38520,-39440,-40347,-41242,-42125,-42995,-43851,-44695,-45524,-46340,-47142,-47929,-48702,-49460,-50203,-50930,-51642,-52339,-53019,-53683,-54331,-54962,-55577,-56175,-56755,-57318,-57864,-58392,-58903,-59395,-59870,-60326,-60763,-61183,-61583,-61965,-62328,-62672,-62997,-63302,-63589,-63856,-64103,-64331,-64540,-64729,-64898,-65047,-65176,-65286,-65376,-65446,-65496,-65526,-65535,-65526,-65496,-65446,-65376,-65286,-65177,-65047,-64898,-64729,-64540,-64331,-64103,-63856,-63589,-63302,-62997,-62672,-62328,-61965,-61583,-61183,-60764,-60326,-59870,-59395,-58903,-58393,-57864,-57319,-56755,-56175,-55577,-54963,-54331,-53684,-53019,-52339,-51643,-50931,-50203,-49460,-48702,-47930,-47142,-46341,-45525,-44695,-43852,-42995,-42125,-41243,-40348,-39440,-38521,-37590,-36647,-35693,-34729,-33753,-32768,-31772,-30767,-29753,-28729,-27697,-26656,-25607,-24550,-23486,-22414,-21336,-20252,-19161,-18064,-16962,-15854,-14742,-13626,-12505,-11380,-10252,-9121,-7987,-6850,-5712,-4571,-3430,-2287,-1144,0,1143,2286,3429,4571,5711,6850,7986,9120,10251,11379,12504,13625,14742,15854,16961,18063,19160,20251,21336,22414,23485,24549,25606,26655,27696,28728,29752,30766,31772,32767,33753,34728,35693,36646,37589,38520,39440,40347,41242,42125,42995,43851,44695,45524,46340,47142,47929,48702,49460,50203,50930,51642,52339,53019,53683,54331,54962,55577,56175,56755,57318,57864,58392,58903,59395,59869,60326,60763,61182,61583,61965,62328,62672,62997,63302,63589,63856,64103,64331,64540,64729,64898,65047,65176,65286,65376,65446,65496,65526}; |
2f259fa3e83a
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
38 |
|
2f259fa3e83a
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
39 |
|
2f259fa3e83a
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
40 |
#endif /*LOOKUP_TABLES_H_*/ |