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 sinf = __sinf
30
31 /*
32 * See sincosf.c
33 */
34
35 #include "libm.h"
36
37 extern const int _TBL_ipio2_inf[];
38 extern int __rem_pio2m(double *, double *, int, int, int, const int *);
39 #if defined(__i386) && !defined(__amd64)
40 extern int __swapRP(int);
41 #endif
42
43 static const double C[] = {
44 1.85735322054308378716204874632872525989806770558e-0003,
45 -1.95035094218403635082921458859320791358115801259e-0004,
46 5.38400550766074785970952495168558701485841707252e+0002,
47 -3.31975110777873728964197739157371509422022905947e+0001,
48 1.09349482127188401868272000389539985058873853699e-0003,
49 -5.03324285989964979398034700054920226866107675091e-0004,
|
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 __sinf = sinf
30
31 /*
32 * See sincosf.c
33 */
34
35 #include "libm.h"
36
37 extern const int _TBL_ipio2_inf[];
38 extern int __rem_pio2m(double *, double *, int, int, int, const int *);
39 #if defined(__i386) && !defined(__amd64)
40 extern int __swapRP(int);
41 #endif
42
43 static const double C[] = {
44 1.85735322054308378716204874632872525989806770558e-0003,
45 -1.95035094218403635082921458859320791358115801259e-0004,
46 5.38400550766074785970952495168558701485841707252e+0002,
47 -3.31975110777873728964197739157371509422022905947e+0001,
48 1.09349482127188401868272000389539985058873853699e-0003,
49 -5.03324285989964979398034700054920226866107675091e-0004,
|