summaryrefslogtreecommitdiff
path: root/lib/floorf.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2007-10-05 03:02:08 +0200
committerBruno Haible <bruno@clisp.org>2007-10-05 03:02:08 +0200
commitab044c631f6655cfacc8ea4b1383f0cb7740326f (patch)
tree8bf8f2d73d6d126d5d2841548c93d9d1439ae99a /lib/floorf.c
parent5f10cf252efbd67b0936436dcc3c4d4765a0086d (diff)
downloadgnulib-ab044c631f6655cfacc8ea4b1383f0cb7740326f.tar.gz
New module 'floorf'.
Diffstat (limited to 'lib/floorf.c')
-rw-r--r--lib/floorf.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/floorf.c b/lib/floorf.c
new file mode 100644
index 0000000000..769d4523ae
--- /dev/null
+++ b/lib/floorf.c
@@ -0,0 +1,21 @@
+/* Round towards negative infinity.
+ Copyright (C) 2007 Free Software Foundation, Inc.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2, or (at your option)
+ any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation,
+ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
+
+/* Written by Bruno Haible <bruno@clisp.org>, 2007. */
+
+#define USE_FLOAT
+#include "floor.c"