diff src/cs/drivers/drv_app/r2d/r2d_cos.c @ 0:4e78acac3d88

src/{condat,cs,gpf,nucleus}: import from Selenite
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 16 Oct 2020 06:23:26 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/cs/drivers/drv_app/r2d/r2d_cos.c	Fri Oct 16 06:23:26 2020 +0000
@@ -0,0 +1,93 @@
+static const INT32 r2d_cos_table[91]={ /* Q16 format */ 
+0x10000, /* 00 degrees */
+0xFFF6, /* 01 degrees */
+0xFFD8, /* 02 degrees */
+0xFFA6, /* 03 degrees */
+0xFF60, /* 04 degrees */
+0xFF06, /* 05 degrees */
+0xFE98, /* 06 degrees */
+0xFE17, /* 07 degrees */
+0xFD82, /* 08 degrees */
+0xFCD9, /* 09 degrees */
+0xFC1C, /* 10 degrees */
+0xFB4B, /* 11 degrees */
+0xFA67, /* 12 degrees */
+0xF970, /* 13 degrees */
+0xF865, /* 14 degrees */
+0xF746, /* 15 degrees */
+0xF615, /* 16 degrees */
+0xF4D0, /* 17 degrees */
+0xF378, /* 18 degrees */
+0xF20D, /* 19 degrees */
+0xF08F, /* 20 degrees */
+0xEEFF, /* 21 degrees */
+0xED5B, /* 22 degrees */
+0xEBA6, /* 23 degrees */
+0xE9DE, /* 24 degrees */
+0xE803, /* 25 degrees */
+0xE617, /* 26 degrees */
+0xE419, /* 27 degrees */
+0xE208, /* 28 degrees */
+0xDFE7, /* 29 degrees */
+0xDDB3, /* 30 degrees */
+0xDB6F, /* 31 degrees */
+0xD919, /* 32 degrees */
+0xD6B3, /* 33 degrees */
+0xD43B, /* 34 degrees */
+0xD1B3, /* 35 degrees */
+0xCF1B, /* 36 degrees */
+0xCC73, /* 37 degrees */
+0xC9BB, /* 38 degrees */
+0xC6F3, /* 39 degrees */
+0xC41B, /* 40 degrees */
+0xC134, /* 41 degrees */
+0xBE3E, /* 42 degrees */
+0xBB39, /* 43 degrees */
+0xB826, /* 44 degrees */
+0xB504, /* 45 degrees */
+0xB1D5, /* 46 degrees */
+0xAE97, /* 47 degrees */
+0xAB4C, /* 48 degrees */
+0xA7F3, /* 49 degrees */
+0xA48D, /* 50 degrees */
+0xA11B, /* 51 degrees */
+0x9D9B, /* 52 degrees */
+0x9A10, /* 53 degrees */
+0x9679, /* 54 degrees */
+0x92D5, /* 55 degrees */
+0x8F27, /* 56 degrees */
+0x8B6D, /* 57 degrees */
+0x87A8, /* 58 degrees */
+0x83D9, /* 59 degrees */
+0x8000, /* 60 degrees */
+0x7C1C, /* 61 degrees */
+0x782F, /* 62 degrees */
+0x7438, /* 63 degrees */
+0x7039, /* 64 degrees */
+0x6C30, /* 65 degrees */
+0x681F, /* 66 degrees */
+0x6406, /* 67 degrees */
+0x5FE6, /* 68 degrees */
+0x5BBE, /* 69 degrees */
+0x578E, /* 70 degrees */
+0x5358, /* 71 degrees */
+0x4F1B, /* 72 degrees */
+0x4AD8, /* 73 degrees */
+0x4690, /* 74 degrees */
+0x4241, /* 75 degrees */
+0x3DEE, /* 76 degrees */
+0x3996, /* 77 degrees */
+0x3539, /* 78 degrees */
+0x30D8, /* 79 degrees */
+0x2C74, /* 80 degrees */
+0x280C, /* 81 degrees */
+0x23A0, /* 82 degrees */
+0x1F32, /* 83 degrees */
+0x1AC2, /* 84 degrees */
+0x164F, /* 85 degrees */
+0x11DB, /* 86 degrees */
+0x0D65, /* 87 degrees */
+0x08EF, /* 88 degrees */
+0x0477, /* 89 degrees */
+0x0000, /* 90 degrees */
+};