Vector sin for x86_64 and tests.
[glibc.git] / sysdeps / x86_64 / fpu / svml_d_sin_data.h
blob76ab508c15aa7df52d226d35bfd6b8ab2be2fae0
1 /* Offsets for data table for vectorized sin.
2 Copyright (C) 2014-2015 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_SIN_DATA_H
20 #define D_SIN_DATA_H
22 /* Offsets for data table */
23 #define __dAbsMask 0
24 #define __dRangeVal 64
25 #define __dInvPI 128
26 #define __dRShifter 192
27 #define __dZero 256
28 #define __lNZero 320
29 #define __dPI1 384
30 #define __dPI2 448
31 #define __dPI3 512
32 #define __dPI4 576
33 #define __dPI1_FMA 640
34 #define __dPI2_FMA 704
35 #define __dPI3_FMA 768
36 #define __dC1 832
37 #define __dC2 896
38 #define __dC3 960
39 #define __dC4 1024
40 #define __dC5 1088
41 #define __dC6 1152
42 #define __dC7 1216
44 .macro double_vector offset value
45 .if .-__svml_dsin_data != \offset
46 .err
47 .endif
48 .rept 8
49 .quad \value
50 .endr
51 .endm
53 #endif