diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2018-03-10 20:52:59 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2018-03-10 20:52:59 +0000 |
commit | 13a06ba585136e86647a68523dd8f6498c687e9a (patch) | |
tree | f2d07cf1c095143e090ce1eb299f48482f90e22f /include/math.h | |
parent | c9533e7f54362f69404a240f8b08dca64aad2812 (diff) |
Implement sicos(3), sincosf(3) and sincosl(3). These functions are common
extensions and modern compilers (such as clang) will use them to optimize
separate calculations of sine and cosine.
ok tom@, patrick@, deraadt@, jmc@
Diffstat (limited to 'include/math.h')
-rw-r--r-- | include/math.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/math.h b/include/math.h index 783e5bb37a0..e6dd268c7f7 100644 --- a/include/math.h +++ b/include/math.h @@ -1,4 +1,4 @@ -/* $OpenBSD: math.h,v 1.35 2016/03/17 20:55:35 jca Exp $ */ +/* $OpenBSD: math.h,v 1.36 2018/03/10 20:52:58 kettenis Exp $ */ /* * ==================================================== * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. @@ -273,6 +273,8 @@ int finite(double); double gamma_r(double, int *); double lgamma_r(double, int *); +void sincos(double, double *, double *); + /* * IEEE Test Vector */ @@ -382,6 +384,8 @@ int isnanf(float); float gammaf_r(float, int *); float lgammaf_r(float, int *); +void sincosf(float, float *, float *); + /* * Float version of IEEE Test Vector */ @@ -461,6 +465,13 @@ long double fmal(long double, long double, long double); #endif /* __ISO_C_VISIBLE >= 1999 */ /* + * Long double versions of BSD math library entry points + */ +#if __BSD_VISIBLE +void sincosl(long double, long double *, long double *); +#endif + +/* * Library implementation */ int __fpclassify(double); |