Print this page
11210 libm should be cstyle(1ONBLD) clean

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