Print this page
5261 libm should stop using synonyms.h
5298 fabs is 0-sized, confuses dis(1) and others
Reviewed by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Approved by: Gordon Ross <gwr@nexenta.com>


   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  * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
  23  */
  24 /*
  25  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
  26  * Use is subject to license terms.
  27  */
  28 
  29 #pragma weak tanf = __tanf
  30 
  31 #include "libm.h"
  32 
  33 extern const int _TBL_ipio2_inf[];
  34 extern int __rem_pio2m(double *, double *, int, int, int, const int *);
  35 #if defined(__i386) && !defined(__amd64)
  36 extern int __swapRP(int);
  37 #endif
  38 
  39 static const double C[] = {
  40         1.0,
  41         4.46066928428959230679140546271810308098793029785e-0003,
  42         4.92165316309189027066395283327437937259674072266e+0000,
  43         -7.11410648161473480044492134766187518835067749023e-0001,
  44         4.08549808374053391446523164631798863410949707031e+0000,
  45         2.50411070398050927821032018982805311679840087891e+0000,
  46         1.11492064560251158411574579076841473579406738281e+0001,
  47         -1.50565540968422650891511693771462887525558471680e+0000,
  48         -1.81484378878349295050043110677506774663925170898e+0000,
  49         3.333335997532835641297409611782510896641e-0001,




   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  * Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
  23  */
  24 /*
  25  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
  26  * Use is subject to license terms.
  27  */
  28 
  29 #pragma weak __tanf = tanf
  30 
  31 #include "libm.h"
  32 
  33 extern const int _TBL_ipio2_inf[];
  34 extern int __rem_pio2m(double *, double *, int, int, int, const int *);
  35 #if defined(__i386) && !defined(__amd64)
  36 extern int __swapRP(int);
  37 #endif
  38 
  39 static const double C[] = {
  40         1.0,
  41         4.46066928428959230679140546271810308098793029785e-0003,
  42         4.92165316309189027066395283327437937259674072266e+0000,
  43         -7.11410648161473480044492134766187518835067749023e-0001,
  44         4.08549808374053391446523164631798863410949707031e+0000,
  45         2.50411070398050927821032018982805311679840087891e+0000,
  46         1.11492064560251158411574579076841473579406738281e+0001,
  47         -1.50565540968422650891511693771462887525558471680e+0000,
  48         -1.81484378878349295050043110677506774663925170898e+0000,
  49         3.333335997532835641297409611782510896641e-0001,