xref: /illumos-gate/usr/src/lib/libm/common/LD/_TBL_tanl.c (revision 6e6545bfaed3bab9ce836ee82d1abd8f2edba89a)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License (the "License").
6  * You may not use this file except in compliance with the License.
7  *
8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9  * or http://www.opensolaris.org/os/licensing.
10  * See the License for the specific language governing permissions
11  * and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL HEADER in each
14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15  * If applicable, add the following below this CDDL HEADER, with the
16  * fields enclosed by brackets "[]" replaced with your own identifying
17  * information: Portions Copyright [yyyy] [name of copyright owner]
18  *
19  * CDDL HEADER END
20  */
21 
22 /*
23  * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
24  */
25 /*
26  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
27  * Use is subject to license terms.
28  */
29 
30 /*
31  * For i = 0L, ..., 75 let x(i) be the extended precision number
32  * whose exponent is given by 0x3ffc + ((i + 8) >> 5) and whose
33  * five most significant fraction bits are given by (i + 8) & 0x1f.
34  * (The remaining fraction bits are zero and the integer bit is 1.)
35  * Then _TBL_tanl_hi[i] := tan(x(i)) rounded to extended precisionL,
36  * and _TBL_tanl_lo[i] ~ tan(x(i)) - _TBL_tanl_hi[i].
37  */
38 
39 #include "libm.h"
40 
41 const long double _TBL_tanl_hi[] = {
42 	 1.5753410732527161068790289e-01L,
43 	 1.6153978404952147631388516e-01L,
44 	 1.6555051927393397620861225e-01L,
45 	 1.6956644521976651014845677e-01L,
46 	 1.7358769476798152084980487e-01L,
47 	 1.7761440147744672763405801e-01L,
48 	 1.8164669960332142765752766e-01L,
49 	 1.8568472411563441162006289e-01L,
50 	 1.8972861071805913288790962e-01L,
51 	 1.9377849586689186352228293e-01L,
52 	 1.9783451679023866881187727e-01L,
53 	 2.0189681150741713288741981e-01L,
54 	 2.0596551884857887210688535e-01L,
55 	 2.1004077847455898084587031e-01L,
56 	 2.1412273089695866488913964e-01L,
57 	 2.1821151749846743250413339e-01L,
58 	 2.2230728055343133087249762e-01L,
59 	 2.2641016324867383747423879e-01L,
60 	 2.3052030970457614146129199e-01L,
61 	 2.3463786499642367899603687e-01L,
62 	 2.3876297517602592026663300e-01L,
63 	 2.4289578729361654240565243e-01L,
64 	 2.4703644942004126466383960e-01L,
65 	 2.5118511066924076739260464e-01L,
66 	 2.5534192122103626651019939e-01L,
67 	 2.6368059641999679984405817e-01L,
68 	 2.7205369865877088343545168e-01L,
69 	 2.8046247014525140317325012e-01L,
70 	 2.8890817244051472599780488e-01L,
71 	 2.9739208726902458947518627e-01L,
72 	 3.0591551735305926411887835e-01L,
73 	 3.1447978727257151616261872e-01L,
74 	 3.2308624435174552010563084e-01L,
75 	 3.3173625957357276734381764e-01L,
76 	 3.4043122852383038743446717e-01L,
77 	 3.4917257236591035224446307e-01L,
78 	 3.5796173884801699838350761e-01L,
79 	 3.6680020334432342273152904e-01L,
80 	 3.7568946993175484041940608e-01L,
81 	 3.8463107250414922303567364e-01L,
82 	 3.9362657592563275821902387e-01L,
83 	 4.0267757722514021178576021e-01L,
84 	 4.1178570683410847577655099e-01L,
85 	 4.2095262986947582208789413e-01L,
86 	 4.3018004746423004901363651e-01L,
87 	 4.3946969814786624047050871e-01L,
88 	 4.4882335927923970884728319e-01L,
89 	 4.5824284853443236696884759e-01L,
90 	 4.6773002545239179993303603e-01L,
91 	 4.7728679304125226171028919e-01L,
92 	 4.8691509944840632450355038e-01L,
93 	 4.9661693969756562569970761e-01L,
94 	 5.0639435749622981205141092e-01L,
95 	 5.1624944711717514451250130e-01L,
96 	 5.2618435535777914417981255e-01L,
97 	 5.3620128358121603136601796e-01L,
98 	 5.4630248984379051326943158e-01L,
99 	 5.6676706558058644568054429e-01L,
100 	 5.8759736759144322142123240e-01L,
101 	 6.0881374032438072139072557e-01L,
102 	 6.3043767383588476685765678e-01L,
103 	 6.5249189792880799270563541e-01L,
104 	 6.7500048514424290766085257e-01L,
105 	 6.9798896362359925515245207e-01L,
106 	 7.2148444099090441996918396e-01L,
107 	 7.4551574055939199512374818e-01L,
108 	 7.7011355134420870501661335e-01L,
109 	 7.9531059356867418562312202e-01L,
110 	 8.2114180158989412189243090e-01L,
111 	 8.4764452644655265410892839e-01L,
112 	 8.7485876055448234952464232e-01L,
113 	 9.0282738745267350217570818e-01L,
114 	 9.3159645994407246116005700e-01L,
115 	 9.6121551049437041616208335e-01L,
116 	 9.9173789836326868026407724e-01L,
117 };
118 
119 const long double _TBL_tanl_lo[] = {
120 	-2.6771159409105731701405510e-21L,
121 	-4.6099226789741262900210606e-21L,
122 	 5.3186644140375322820802458e-21L,
123 	 2.5138405830938633735686839e-21L,
124 	-5.1314617057806432706999694e-21L,
125 	-2.3150818458524320771936317e-21L,
126 	 7.4823150688409589857878346e-22L,
127 	 6.5983384951777057330962451e-21L,
128 	 3.1737465070309238679637904e-21L,
129 	-6.2605330413009742107992404e-21L,
130 	-3.4708968895421512574248288e-21L,
131 	-3.3508177722855547163047103e-21L,
132 	 1.8539761255947162282442845e-21L,
133 	-4.3527863815358994574071238e-21L,
134 	-3.0729582373746958079080308e-21L,
135 	 1.7486583794617176080777995e-21L,
136 	-2.0880427643688559927261666e-22L,
137 	 3.4326156341633317484064051e-21L,
138 	-5.8444712515543005993510667e-21L,
139 	 3.3308393583864583403400180e-21L,
140 	 1.5180609545016167494014088e-21L,
141 	-4.5664864992230118395870971e-21L,
142 	-3.4486635382887607253671356e-22L,
143 	 6.4992471510018586950169590e-21L,
144 	-5.7171552644357921603079772e-21L,
145 	 1.0767820312749142840542796e-20L,
146 	-8.8873094864264944929118678e-21L,
147 	-3.6458345495736833933253427e-21L,
148 	 3.7835691968285101289024150e-21L,
149 	-7.9922577212991920007926665e-21L,
150 	-1.1639426061963512311797196e-20L,
151 	 1.0819496381458482697046145e-20L,
152 	 1.2669812351932848585361942e-20L,
153 	-4.3879352642165387665557942e-21L,
154 	-6.2397232294970361376981025e-21L,
155 	 1.0249894624181563425318369e-20L,
156 	 4.8883545518509990780582976e-21L,
157 	-1.0924217224719888561366811e-20L,
158 	-1.0160304466598813882209781e-20L,
159 	 5.1826415091471411711448075e-21L,
160 	 1.0389918683332972349077236e-20L,
161 	-7.1664776574714262163862363e-21L,
162 	 1.2298884220333748071625466e-20L,
163 	-1.3099990378137383497651040e-20L,
164 	 6.6930911371536844477108605e-21L,
165 	 1.3154437144468699485999317e-20L,
166 	-6.7276672708135125503950130e-21L,
167 	-9.6583948799780933132703713e-21L,
168 	-1.1693327591353762422287158e-20L,
169 	 1.2115072030396340314945014e-20L,
170 	-4.8328734014430698289025015e-21L,
171 	 1.0852973061445293626693228e-20L,
172 	 1.9411831283588255256712679e-20L,
173 	-2.0725962316575506668083850e-20L,
174 	-9.1991091819589918968351350e-21L,
175 	-1.8439030785497371079388971e-20L,
176 	-1.4252114398617735096821730e-20L,
177 	-3.6634999903039053547935623e-22L,
178 	-2.7073538111310219812185487e-20L,
179 	 2.1768400635771833866020006e-20L,
180 	-5.0453509036808273670769239e-21L,
181 	 1.8262326404957249986102613e-20L,
182 	 2.3253788272891224529527726e-21L,
183 	-2.6863465601726641017825874e-21L,
184 	 2.0333919445169836552474035e-20L,
185 	 1.2381983326738354735338055e-20L,
186 	-1.0629693225258909983165405e-20L,
187 	 2.2479666845586239075466463e-20L,
188 	 1.8993064919061156630226362e-20L,
189 	-1.8140078592138587341953739e-20L,
190 	 1.5029592868184122759494625e-20L,
191 	 2.0466189644006868146496769e-20L,
192 	 5.1457594757697525471406575e-21L,
193 	 2.3217272240793119168128789e-20L,
194 	-7.2198528398134119662230907e-21L,
195 };
196