2015-06-23 16:21:50 +00:00
|
|
|
/* Data for vectorized sin, cos, sincos.
|
2023-01-06 21:08:04 +00:00
|
|
|
Copyright (C) 2014-2023 Free Software Foundation, Inc.
|
2015-06-09 11:25:49 +00:00
|
|
|
This file is part of the GNU C Library.
|
|
|
|
|
|
|
|
The GNU C Library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Lesser General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 2.1 of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
The GNU C Library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Lesser General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
|
|
License along with the GNU C Library; if not, see
|
Prefer https to http for gnu.org and fsf.org URLs
Also, change sources.redhat.com to sourceware.org.
This patch was automatically generated by running the following shell
script, which uses GNU sed, and which avoids modifying files imported
from upstream:
sed -ri '
s,(http|ftp)(://(.*\.)?(gnu|fsf|sourceware)\.org($|[^.]|\.[^a-z])),https\2,g
s,(http|ftp)(://(.*\.)?)sources\.redhat\.com($|[^.]|\.[^a-z]),https\2sourceware.org\4,g
' \
$(find $(git ls-files) -prune -type f \
! -name '*.po' \
! -name 'ChangeLog*' \
! -path COPYING ! -path COPYING.LIB \
! -path manual/fdl-1.3.texi ! -path manual/lgpl-2.1.texi \
! -path manual/texinfo.tex ! -path scripts/config.guess \
! -path scripts/config.sub ! -path scripts/install-sh \
! -path scripts/mkinstalldirs ! -path scripts/move-if-change \
! -path INSTALL ! -path locale/programs/charmap-kw.h \
! -path po/libc.pot ! -path sysdeps/gnu/errlist.c \
! '(' -name configure \
-execdir test -f configure.ac -o -f configure.in ';' ')' \
! '(' -name preconfigure \
-execdir test -f preconfigure.ac ';' ')' \
-print)
and then by running 'make dist-prepare' to regenerate files built
from the altered files, and then executing the following to cleanup:
chmod a+x sysdeps/unix/sysv/linux/riscv/configure
# Omit irrelevant whitespace and comment-only changes,
# perhaps from a slightly-different Autoconf version.
git checkout -f \
sysdeps/csky/configure \
sysdeps/hppa/configure \
sysdeps/riscv/configure \
sysdeps/unix/sysv/linux/csky/configure
# Omit changes that caused a pre-commit check to fail like this:
# remote: *** error: sysdeps/powerpc/powerpc64/ppc-mcount.S: trailing lines
git checkout -f \
sysdeps/powerpc/powerpc64/ppc-mcount.S \
sysdeps/unix/sysv/linux/s390/s390-64/syscall.S
# Omit change that caused a pre-commit check to fail like this:
# remote: *** error: sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: last line does not end in newline
git checkout -f sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S
2019-09-07 05:40:42 +00:00
|
|
|
<https://www.gnu.org/licenses/>. */
|
2015-06-09 11:25:49 +00:00
|
|
|
|
2015-06-23 16:21:50 +00:00
|
|
|
#include "svml_d_trig_data.h"
|
2015-06-09 11:25:49 +00:00
|
|
|
|
|
|
|
.section .rodata, "a"
|
|
|
|
.align 64
|
|
|
|
|
2015-06-23 16:21:50 +00:00
|
|
|
/* Data table for vector implementations.
|
2015-06-09 11:25:49 +00:00
|
|
|
The table may contain polynomial, reduction, lookup
|
|
|
|
coefficients and other constants obtained through different
|
|
|
|
methods of research and experimental work.
|
|
|
|
*/
|
2015-06-23 16:21:50 +00:00
|
|
|
.globl __svml_d_trig_data
|
|
|
|
__svml_d_trig_data:
|
2015-06-09 11:25:49 +00:00
|
|
|
|
|
|
|
/* General purpose constants:
|
|
|
|
absolute value mask
|
|
|
|
*/
|
|
|
|
double_vector __dAbsMask 0x7fffffffffffffff
|
|
|
|
|
|
|
|
/* working range threshold */
|
|
|
|
double_vector __dRangeVal 0x4160000000000000
|
|
|
|
|
2015-06-23 16:21:50 +00:00
|
|
|
/* working range threshold */
|
|
|
|
double_vector __dRangeVal_sin 0x4170000000000000
|
|
|
|
|
2015-06-09 11:25:49 +00:00
|
|
|
/* PI/2 */
|
|
|
|
double_vector __dHalfPI 0x3ff921fb54442d18
|
|
|
|
|
|
|
|
/* 1/PI */
|
|
|
|
double_vector __dInvPI 0x3fd45f306dc9c883
|
|
|
|
|
|
|
|
/* right-shifter constant */
|
|
|
|
double_vector __dRShifter 0x4338000000000000
|
|
|
|
|
2015-06-23 16:21:50 +00:00
|
|
|
/* 0.0 */
|
|
|
|
double_vector __dZero 0x0000000000000000
|
|
|
|
|
|
|
|
/* -0.0 */
|
|
|
|
double_vector __lNZero 0x8000000000000000
|
|
|
|
|
2015-06-09 11:25:49 +00:00
|
|
|
/* 0.5 */
|
|
|
|
double_vector __dOneHalf 0x3fe0000000000000
|
|
|
|
|
|
|
|
/* Range reduction PI-based constants:
|
|
|
|
PI high part
|
|
|
|
*/
|
|
|
|
double_vector __dPI1 0x400921fb40000000
|
|
|
|
|
|
|
|
/* PI mid part 1 */
|
|
|
|
double_vector __dPI2 0x3e84442d00000000
|
|
|
|
|
|
|
|
/* PI mid part 2 */
|
|
|
|
double_vector __dPI3 0x3d08469880000000
|
|
|
|
|
|
|
|
/* PI low part */
|
|
|
|
double_vector __dPI4 0x3b88cc51701b839a
|
|
|
|
|
|
|
|
/* Range reduction PI-based constants if FMA available:
|
|
|
|
PI high part (FMA available)
|
|
|
|
*/
|
|
|
|
double_vector __dPI1_FMA 0x400921fb54442d18
|
|
|
|
|
|
|
|
/* PI mid part (FMA available) */
|
|
|
|
double_vector __dPI2_FMA 0x3ca1a62633145c06
|
|
|
|
|
|
|
|
/* PI low part (FMA available) */
|
|
|
|
double_vector __dPI3_FMA 0x395c1cd129024e09
|
|
|
|
|
2015-06-23 16:21:50 +00:00
|
|
|
/* HalfPI1 */
|
|
|
|
double_vector __dHalfPI1 0x3ff921fc00000000
|
|
|
|
|
|
|
|
/* HalfPI2 */
|
|
|
|
double_vector __dHalfPI2 0xbea5777a00000000
|
|
|
|
|
|
|
|
/* HalfPI3 */
|
|
|
|
double_vector __dHalfPI3 0xbd473dcc00000000
|
|
|
|
|
|
|
|
/* HalfPI4 */
|
|
|
|
double_vector __dHalfPI4 0x3bf898cc51701b84
|
|
|
|
|
2015-06-09 11:25:49 +00:00
|
|
|
/* Polynomial coefficients (relative error 2^(-52.115)): */
|
|
|
|
double_vector __dC1 0xbfc55555555554a7
|
|
|
|
double_vector __dC2 0x3f8111111110a4a8
|
|
|
|
double_vector __dC3 0xbf2a01a019a5b86d
|
|
|
|
double_vector __dC4 0x3ec71de38030fea0
|
|
|
|
double_vector __dC5 0xbe5ae63546002231
|
|
|
|
double_vector __dC6 0x3de60e6857a2f220
|
|
|
|
double_vector __dC7 0xbd69f0d60811aac8
|
|
|
|
|
2015-06-23 16:21:50 +00:00
|
|
|
/* Polynomial coefficients (relative error 2^(-52.115)): */
|
|
|
|
double_vector __dC1_sin 0xbfc55555555554a8
|
|
|
|
double_vector __dC2_sin 0x3f8111111110a573
|
|
|
|
double_vector __dC3_sin 0xbf2a01a019a659dd
|
|
|
|
double_vector __dC4_sin 0x3ec71de3806add1a
|
|
|
|
double_vector __dC5_sin 0xbe5ae6355aaa4a53
|
|
|
|
double_vector __dC6_sin 0x3de60e6bee01d83e
|
|
|
|
double_vector __dC7_sin 0xbd69f1517e9f65f0
|
|
|
|
|
2015-06-09 11:25:49 +00:00
|
|
|
/*
|
|
|
|
Additional constants:
|
|
|
|
absolute value mask
|
|
|
|
*/
|
|
|
|
/* right-shifer for low accuracy version */
|
|
|
|
double_vector __dRShifter_la 0x4330000000000000
|
|
|
|
|
|
|
|
/* right-shifer-1.0 for low accuracy version */
|
|
|
|
double_vector __dRShifterm5_la 0x432fffffffffffff
|
|
|
|
|
|
|
|
/* right-shifer with low mask for low accuracy version */
|
|
|
|
double_vector __dRXmax_la 0x43300000007ffffe
|
|
|
|
|
2015-06-23 16:21:50 +00:00
|
|
|
.type __svml_d_trig_data,@object
|
|
|
|
.size __svml_d_trig_data,.-__svml_d_trig_data
|