diff options
author | 2011-07-06 00:02:42 +0000 | |
---|---|---|
committer | 2011-07-06 00:02:42 +0000 | |
commit | 49393c004c040ee201e6408db68882c3fe4cb110 (patch) | |
tree | f3298ab7f1009e5bcf7f59709937ab1bf7c9db6e /lib/libm/src/s_llrintl.c | |
parent | a short note about PR_DEBUGCHK (diff) | |
download | wireguard-openbsd-49393c004c040ee201e6408db68882c3fe4cb110.tar.xz wireguard-openbsd-49393c004c040ee201e6408db68882c3fe4cb110.zip |
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 'lib/libm/src/s_llrintl.c')
-rw-r--r-- | lib/libm/src/s_llrintl.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/libm/src/s_llrintl.c b/lib/libm/src/s_llrintl.c new file mode 100644 index 00000000000..2d29727592f --- /dev/null +++ b/lib/libm/src/s_llrintl.c @@ -0,0 +1,12 @@ +/* $OpenBSD: s_llrintl.c,v 1.1 2011/07/06 00:02:42 martynas Exp $ */ + +/* + * Written by Martynas Venckus. Public domain + */ + +#define type long double +#define roundit rintl +#define dtype long long +#define fn llrintl + +#include "s_lrintl.c" |