summaryrefslogtreecommitdiffstats
path: root/lib/libm/src/llround.c
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2005-11-17 20:07:40 +0000
committerotto <otto@openbsd.org>2005-11-17 20:07:40 +0000
commita242fdc4be71946331f6eeb6da86c69c6fef2fb8 (patch)
tree04bb1e391646c8b075c3f0f7f5a5d46243ce8917 /lib/libm/src/llround.c
parentsome knf and whitespace cleanup. (diff)
downloadwireguard-openbsd-a242fdc4be71946331f6eeb6da86c69c6fef2fb8.tar.xz
wireguard-openbsd-a242fdc4be71946331f6eeb6da86c69c6fef2fb8.zip
Introduce a few c99 functions: {l,ll}{rint,round}{,f}. From NetBSD via
jason@. Man page fixes by jmc@, prodding by jsg@. ok mickey@
Diffstat (limited to 'lib/libm/src/llround.c')
-rw-r--r--lib/libm/src/llround.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/libm/src/llround.c b/lib/libm/src/llround.c
new file mode 100644
index 00000000000..b52c02c3291
--- /dev/null
+++ b/lib/libm/src/llround.c
@@ -0,0 +1,14 @@
+/* $OpenBSD: llround.c,v 1.1 2005/11/17 20:07:40 otto Exp $ */
+/* $NetBSD: llround.c,v 1.2 2004/10/13 15:18:32 drochner Exp $ */
+
+/*
+ * Written by Matthias Drochner <drochner@NetBSD.org>.
+ * Public domain.
+ */
+
+#define LROUNDNAME llround
+#define RESTYPE long long int
+#define RESTYPE_MIN LLONG_MIN
+#define RESTYPE_MAX LLONG_MAX
+
+#include "lround.c"