Home | History | Annotate | Download | only in core
      1 
      2 /*
      3  * Copyright 2006 The Android Open Source Project
      4  *
      5  * Use of this source code is governed by a BSD-style license that can be
      6  * found in the LICENSE file.
      7  */
      8 
      9 
     10 #ifndef SkSinTable_DEFINED
     11 #define SkSinTable_DEFINED
     12 
     13 #include "SkTypes.h"
     14 
     15 /* Fixed point values (low 16 bits) of sin(radians) for
     16     radians in [0...PI/2)
     17 */
     18 static const uint16_t gSkSinTable[256] = {
     19     0x0000,
     20     0x0192,
     21     0x0324,
     22     0x04B6,
     23     0x0648,
     24     0x07DA,
     25     0x096C,
     26     0x0AFE,
     27     0x0C8F,
     28     0x0E21,
     29     0x0FB2,
     30     0x1144,
     31     0x12D5,
     32     0x1466,
     33     0x15F6,
     34     0x1787,
     35     0x1917,
     36     0x1AA7,
     37     0x1C37,
     38     0x1DC7,
     39     0x1F56,
     40     0x20E5,
     41     0x2273,
     42     0x2402,
     43     0x2590,
     44     0x271D,
     45     0x28AA,
     46     0x2A37,
     47     0x2BC4,
     48     0x2D50,
     49     0x2EDB,
     50     0x3066,
     51     0x31F1,
     52     0x337B,
     53     0x3505,
     54     0x368E,
     55     0x3817,
     56     0x399F,
     57     0x3B26,
     58     0x3CAD,
     59     0x3E33,
     60     0x3FB9,
     61     0x413E,
     62     0x42C3,
     63     0x4447,
     64     0x45CA,
     65     0x474D,
     66     0x48CE,
     67     0x4A50,
     68     0x4BD0,
     69     0x4D50,
     70     0x4ECF,
     71     0x504D,
     72     0x51CA,
     73     0x5347,
     74     0x54C3,
     75     0x563E,
     76     0x57B8,
     77     0x5931,
     78     0x5AAA,
     79     0x5C22,
     80     0x5D98,
     81     0x5F0E,
     82     0x6083,
     83     0x61F7,
     84     0x636A,
     85     0x64DC,
     86     0x664D,
     87     0x67BD,
     88     0x692D,
     89     0x6A9B,
     90     0x6C08,
     91     0x6D74,
     92     0x6EDF,
     93     0x7049,
     94     0x71B1,
     95     0x7319,
     96     0x7480,
     97     0x75E5,
     98     0x774A,
     99     0x78AD,
    100     0x7A0F,
    101     0x7B70,
    102     0x7CD0,
    103     0x7E2E,
    104     0x7F8B,
    105     0x80E7,
    106     0x8242,
    107     0x839C,
    108     0x84F4,
    109     0x864B,
    110     0x87A1,
    111     0x88F5,
    112     0x8A48,
    113     0x8B9A,
    114     0x8CEA,
    115     0x8E39,
    116     0x8F87,
    117     0x90D3,
    118     0x921E,
    119     0x9368,
    120     0x94B0,
    121     0x95F6,
    122     0x973C,
    123     0x987F,
    124     0x99C2,
    125     0x9B02,
    126     0x9C42,
    127     0x9D7F,
    128     0x9EBC,
    129     0x9FF6,
    130     0xA12F,
    131     0xA267,
    132     0xA39D,
    133     0xA4D2,
    134     0xA605,
    135     0xA736,
    136     0xA866,
    137     0xA994,
    138     0xAAC0,
    139     0xABEB,
    140     0xAD14,
    141     0xAE3B,
    142     0xAF61,
    143     0xB085,
    144     0xB1A8,
    145     0xB2C8,
    146     0xB3E7,
    147     0xB504,
    148     0xB620,
    149     0xB73A,
    150     0xB852,
    151     0xB968,
    152     0xBA7C,
    153     0xBB8F,
    154     0xBCA0,
    155     0xBDAE,
    156     0xBEBC,
    157     0xBFC7,
    158     0xC0D0,
    159     0xC1D8,
    160     0xC2DE,
    161     0xC3E2,
    162     0xC4E3,
    163     0xC5E4,
    164     0xC6E2,
    165     0xC7DE,
    166     0xC8D8,
    167     0xC9D1,
    168     0xCAC7,
    169     0xCBBB,
    170     0xCCAE,
    171     0xCD9F,
    172     0xCE8D,
    173     0xCF7A,
    174     0xD064,
    175     0xD14D,
    176     0xD233,
    177     0xD318,
    178     0xD3FA,
    179     0xD4DB,
    180     0xD5B9,
    181     0xD695,
    182     0xD770,
    183     0xD848,
    184     0xD91E,
    185     0xD9F2,
    186     0xDAC4,
    187     0xDB94,
    188     0xDC61,
    189     0xDD2D,
    190     0xDDF6,
    191     0xDEBE,
    192     0xDF83,
    193     0xE046,
    194     0xE106,
    195     0xE1C5,
    196     0xE282,
    197     0xE33C,
    198     0xE3F4,
    199     0xE4AA,
    200     0xE55E,
    201     0xE60F,
    202     0xE6BE,
    203     0xE76B,
    204     0xE816,
    205     0xE8BF,
    206     0xE965,
    207     0xEA09,
    208     0xEAAB,
    209     0xEB4B,
    210     0xEBE8,
    211     0xEC83,
    212     0xED1C,
    213     0xEDB2,
    214     0xEE46,
    215     0xEED8,
    216     0xEF68,
    217     0xEFF5,
    218     0xF080,
    219     0xF109,
    220     0xF18F,
    221     0xF213,
    222     0xF294,
    223     0xF314,
    224     0xF391,
    225     0xF40B,
    226     0xF484,
    227     0xF4FA,
    228     0xF56D,
    229     0xF5DE,
    230     0xF64D,
    231     0xF6BA,
    232     0xF724,
    233     0xF78B,
    234     0xF7F1,
    235     0xF853,
    236     0xF8B4,
    237     0xF912,
    238     0xF96E,
    239     0xF9C7,
    240     0xFA1E,
    241     0xFA73,
    242     0xFAC5,
    243     0xFB14,
    244     0xFB61,
    245     0xFBAC,
    246     0xFBF5,
    247     0xFC3B,
    248     0xFC7E,
    249     0xFCBF,
    250     0xFCFE,
    251     0xFD3A,
    252     0xFD74,
    253     0xFDAB,
    254     0xFDE0,
    255     0xFE13,
    256     0xFE43,
    257     0xFE70,
    258     0xFE9B,
    259     0xFEC4,
    260     0xFEEA,
    261     0xFF0E,
    262     0xFF2F,
    263     0xFF4E,
    264     0xFF6A,
    265     0xFF84,
    266     0xFF9C,
    267     0xFFB1,
    268     0xFFC3,
    269     0xFFD3,
    270     0xFFE1,
    271     0xFFEC,
    272     0xFFF4,
    273     0xFFFB,
    274     0xFFFE
    275 };
    276 
    277 #endif
    278