libm_protos.h revision 1ec68d336ba97cd53f46053ac10401d16014d075
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2011 Nexenta Systems, Inc. All rights reserved.
*/
/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _C_LIBM_PROTOS_H
#define _C_LIBM_PROTOS_H
/*
* Many symbols used to be namespaced with __libm to prevent collisions. All
* but these two were otherwise scoped local and directly bound, so that
* collision could not occur.
*
* For reasons unknown, these two are global (but private).
*/
#define __rem_pio2 __libm__rem_pio2
#define __rem_pio2m __libm__rem_pio2m
#ifndef _ASM
#ifdef __STDC__
#define __P(p) p
#else
#define __P(p) ()
#endif
extern double _SVID_libm_err __P((double, double, int));
extern double __k_lgamma __P((double, int *));
extern double __k_sincos __P((double, double, double *));
extern double __k_sincos_ __P((double *, double *));
extern double __k_clog_r __P((double, double, double *));
extern long double __k_clog_rl __P((long double, long double, long double *));
extern long double __k_atan2l __P((long double, long double, long double *));
extern int __rem_pio2 __P((double, double *));
extern int __rem_pio2m __P((double *, double *, int, int, int, const int *));
/*
* entry points that are in-lined
*/
/*
* new C99 entry points
*/
extern double nexttoward __P((double, long double));
extern float nearbyintf __P((float));
extern float nextafterf __P((float, float));
extern float nexttowardf __P((float, long double));
extern long double frexpl(long double, int *);
extern long double nearbyintl __P((long double));
extern long double nextafterl __P((long double, long double));
extern long double nexttowardl __P((long double, long double));
#endif /* _ASM */
#endif /* _C_LIBM_PROTOS_H */