The internal header include/string.h does not work in C++: it causes link errors
[glibc.git] / sysdeps / x86_64 / fpu / svml_d_trig_data.h
blobccdff7edb812c3f6370422f43f8da7410fc91144
1 /* Offsets for data table for vectorized sin, cos, sincos.
2 Copyright (C) 2014-2017 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
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.
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.
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 <http://www.gnu.org/licenses/>. */
19 #ifndef D_TRIG_DATA_H
20 #define D_TRIG_DATA_H
22 #define __dAbsMask 0
23 #define __dRangeVal 64
24 #define __dRangeVal_sin 64*2
25 #define __dHalfPI 64*3
26 #define __dInvPI 64*4
27 #define __dRShifter 64*5
28 #define __dZero 64*6
29 #define __lNZero 64*7
30 #define __dOneHalf 64*8
31 #define __dPI1 64*9
32 #define __dPI2 64*10
33 #define __dPI3 64*11
34 #define __dPI4 64*12
35 #define __dPI1_FMA 64*13
36 #define __dPI2_FMA 64*14
37 #define __dPI3_FMA 64*15
38 #define __dHalfPI1 64*16
39 #define __dHalfPI2 64*17
40 #define __dHalfPI3 64*18
41 #define __dHalfPI4 64*19
42 #define __dC1 64*20
43 #define __dC2 64*21
44 #define __dC3 64*22
45 #define __dC4 64*23
46 #define __dC5 64*24
47 #define __dC6 64*25
48 #define __dC7 64*26
49 #define __dC1_sin 64*27
50 #define __dC2_sin 64*28
51 #define __dC3_sin 64*29
52 #define __dC4_sin 64*30
53 #define __dC5_sin 64*31
54 #define __dC6_sin 64*32
55 #define __dC7_sin 64*33
56 #define __dRShifter_la 64*34
57 #define __dRShifterm5_la 64*35
58 #define __dRXmax_la 64*36
59 #define __dAbsMask_la __dAbsMask
60 #define __dInvPI_la __dInvPI
61 #define __dSignMask __lNZero
63 .macro double_vector offset value
64 .if .-__svml_d_trig_data != \offset
65 .err
66 .endif
67 .rept 8
68 .quad \value
69 .endr
70 .endm
72 #endif