summaryrefslogtreecommitdiff
path: root/lib/roundl.c
diff options
context:
space:
mode:
authorBen Pfaff <blp@cs.stanford.edu>2007-10-20 13:08:26 -0700
committerBen Pfaff <blp@cs.stanford.edu>2007-10-20 13:08:26 -0700
commit980d2709cea1e46299cb5b4f74f7c7a95d07ef06 (patch)
tree583de12457ed658055feba92a97f6d0257135e0e /lib/roundl.c
parent36454274190b141a37308d9b266b3d0b68a71694 (diff)
downloadgnulib-980d2709cea1e46299cb5b4f74f7c7a95d07ef06.tar.gz
Implement 'round', 'roundf', 'roundl' modules.
Diffstat (limited to 'lib/roundl.c')
-rw-r--r--lib/roundl.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/roundl.c b/lib/roundl.c
new file mode 100644
index 0000000000..e53ac0a5d1
--- /dev/null
+++ b/lib/roundl.c
@@ -0,0 +1,19 @@
+/* Round toward nearest, breaking ties away from zero.
+ 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. */
+
+#define USE_LONG_DOUBLE
+#include "round.c"