diff options
author | Martynas Venckus <martynas@cvs.openbsd.org> | 2011-07-06 00:02:43 +0000 |
---|---|---|
committer | Martynas Venckus <martynas@cvs.openbsd.org> | 2011-07-06 00:02:43 +0000 |
commit | 552adc01bec1b81861f6a2c3e76e27867ace71e8 (patch) | |
tree | 23180b99df5409129396cc42f41c3c23c5a46ed9 /include/math.h | |
parent | 7af325e5303e418c4ce2065a5ef7cd09252c72d0 (diff) |
Finalize work on the math library. It's time to do this monster
commit, and deal with problems (if any) in tree.
Note that this adds the following functions. Ports with hacks might
need adjustments.
nexttoward(3), fma(3), nexttowardf(3), fmaf(3), acoshl(3), asinhl(3),
atanhl(3), coshl(3), sinhl(3), tanhl(3), expl(3), expm1l(3), logl(3),
log10l(3), log1pl(3), log2l(3), modfl(3), cbrtl(3), hypotl(3),
powl(3), erfl(3), erfcl(3), lgammal(3), tgammal(3), ceill(3),
floorl(3), lrintl(3), llrintl(3), roundl(3), lroundl(3), llroundl(3),
truncl(3), fmodl(3), remainderl(3), remquol(3), nextafterl(3),
nexttowardl(3), fmal(3).
With this commit, our library implements all functionality required
by C99. Documentation bits will follow.
Diffstat (limited to 'include/math.h')
-rw-r--r-- | include/math.h | 36 |
1 files changed, 1 insertions, 35 deletions
diff --git a/include/math.h b/include/math.h index 5e42486549c..952166ad673 100644 --- a/include/math.h +++ b/include/math.h @@ -1,4 +1,4 @@ -/* $OpenBSD: math.h,v 1.29 2011/05/25 21:46:49 martynas Exp $ */ +/* $OpenBSD: math.h,v 1.30 2011/07/06 00:02:42 martynas Exp $ */ /* * ==================================================== * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. @@ -216,17 +216,13 @@ double remquo(double, double, int *); double copysign(double, double); double nan(const char *); double nextafter(double, double); -#if 0 double nexttoward(double, long double); -#endif double fdim(double, double); double fmax(double, double); double fmin(double, double); -#if 0 double fma(double, double, double); -#endif #endif /* __BSD_VISIBLE || __ISO_C_VISIBLE >= 1999 || __XPG_VISIBLE */ #if __BSD_VISIBLE || __XPG_VISIBLE @@ -326,17 +322,13 @@ float remquof(float, float, int *); float copysignf(float, float); float nanf(const char *); float nextafterf(float, float); -#if 0 float nexttowardf(float, long double); -#endif float fdimf(float, float); float fmaxf(float, float); float fminf(float, float); -#if 0 float fmaf(float, float, float); -#endif #endif /* __ISO_C_VISIBLE >= 1999 */ #if __BSD_VISIBLE || __XPG_VISIBLE @@ -388,90 +380,64 @@ long double cosl(long double); long double sinl(long double); long double tanl(long double); -#if 0 long double acoshl(long double); long double asinhl(long double); long double atanhl(long double); long double coshl(long double); long double sinhl(long double); long double tanhl(long double); -#endif -#if 0 long double expl(long double); -#endif long double exp2l(long double); -#if 0 long double expm1l(long double); -#endif long double frexpl(long double, int *); int ilogbl(long double); long double ldexpl(long double, int); -#if 0 long double logl(long double); long double log10l(long double); long double log1pl(long double); long double log2l(long double); -#endif long double logbl(long double); -#if 0 long double modfl(long double, long double *); -#endif long double scalbnl(long double, int); long double scalblnl(long double, long int); -#if 0 long double cbrtl(long double); -#endif long double fabsl(long double); -#if 0 long double hypotl(long double, long double); long double powl(long double, long double); -#endif long double sqrtl(long double); -#if 0 long double erfl(long double); long double erfcl(long double); long double lgammal(long double); long double tgammal(long double); -#endif -#if 0 long double ceill(long double); long double floorl(long double); -#endif long double nearbyintl(long double); long double rintl(long double); -#if 0 long int lrintl(long double); long long int llrintl(long double); long double roundl(long double); long int lroundl(long double); long long int llroundl(long double); long double truncl(long double); -#endif -#if 0 long double fmodl(long double, long double); long double remainderl(long double, long double); long double remquol(long double, long double, int *); -#endif long double copysignl(long double, long double); long double nanl(const char *); -#if 0 long double nextafterl(long double, long double); long double nexttowardl(long double, long double); -#endif long double fdiml(long double, long double); long double fmaxl(long double, long double); long double fminl(long double, long double); -#if 0 long double fmal(long double, long double, long double); -#endif #endif /* __ISO_C_VISIBLE >= 1999 */ /* |