| 1 | /* Offsets for data table for vectorized sinf, cosf, sincosf. |
| 2 | Copyright (C) 2014-2020 Free Software Foundation, Inc. |
| 3 | This file is part of the GNU C Library. |
| 4 | |
| 5 | The GNU C Library is free software; you can redistribute it and/or |
| 6 | modify it under the terms of the GNU Lesser General Public |
| 7 | License as published by the Free Software Foundation; either |
| 8 | version 2.1 of the License, or (at your option) any later version. |
| 9 | |
| 10 | The GNU C Library is distributed in the hope that it will be useful, |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | Lesser General Public License for more details. |
| 14 | |
| 15 | You should have received a copy of the GNU Lesser General Public |
| 16 | License along with the GNU C Library; if not, see |
| 17 | <https://www.gnu.org/licenses/>. */ |
| 18 | |
| 19 | #ifndef S_TRIG_DATA_H |
| 20 | #define S_TRIG_DATA_H |
| 21 | |
| 22 | .macro float_vector offset value |
| 23 | .if .-__svml_s_trig_data != \offset |
| 24 | .err |
| 25 | .endif |
| 26 | .rept 16 |
| 27 | .long \value |
| 28 | .endr |
| 29 | .endm |
| 30 | |
| 31 | #define __sAbsMask 0 |
| 32 | #define __sRangeReductionVal 64 |
| 33 | #define __sRangeVal 64*2 |
| 34 | #define __sS1 64*3 |
| 35 | #define __sS2 64*4 |
| 36 | #define __sC1 64*5 |
| 37 | #define __sC2 64*6 |
| 38 | #define __sPI1 64*7 |
| 39 | #define __sPI2 64*8 |
| 40 | #define __sPI3 64*9 |
| 41 | #define __sPI4 64*10 |
| 42 | #define __sPI1_FMA 64*11 |
| 43 | #define __sPI2_FMA 64*12 |
| 44 | #define __sPI3_FMA 64*13 |
| 45 | #define __sA3 64*14 |
| 46 | #define __sA5 64*15 |
| 47 | #define __sA7 64*16 |
| 48 | #define __sA9 64*17 |
| 49 | #define __sA5_FMA 64*18 |
| 50 | #define __sA7_FMA 64*19 |
| 51 | #define __sA9_FMA 64*20 |
| 52 | #define __sInvPI 64*21 |
| 53 | #define __sRShifter 64*22 |
| 54 | #define __sHalfPI 64*23 |
| 55 | #define __sOneHalf 64*24 |
| 56 | #define __iIndexMask 64*25 |
| 57 | #define __i2pK_1 64*26 |
| 58 | #define __sSignMask 64*27 |
| 59 | #define __dT_cosf 64*28 |
| 60 | #define __dT 64*92 |
| 61 | |
| 62 | #endif |
| 63 | |