summaryrefslogtreecommitdiff
path: root/lib/round.c
Commit message (Collapse)AuthorAgeFilesLines
* roundl: Simplify for platforms where 'long double' == 'double'.Bruno Haible2011-10-101-1/+3
| | | | | | | | | | * lib/roundl.c: Include <config.h>. (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function. * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second time. * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE. Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE. * modules/roundl (Depends-on): Add round. Update conditions.
* maint: update almost all copyright ranges to include 2011Jim Meyering2011-01-011-1/+1
| | | | Run the new "make update-copyright" rule.
* ceil, trunc, round: Fix gcc warnings.Bruno Haible2010-12-251-1/+5
| | | | | | | * lib/ceil.c (MIN): Undefine before redefining. * lib/trunc.c (MIN): Likewise. * lib/round.c (MIN): Likewise. Include <math.h> first.
* round: Implement result sign according to IEEE 754.Bruno Haible2010-12-221-2/+12
| | | | | | | | * lib/round.c (MIN, MINUS_ZERO): New macros. (FUNC): Return -0.0 for -0.5 < x < 0. * tests/test-roundf-ieee.c (main): Test also values between -1 and 1. * tests/test-round-ieee.c (main): Likewise. * tests/test-roundl-ieee.c (main): Likewise.
* update nearly all FSF copyright year lists to include 2010Jim Meyering2010-01-011-1/+1
| | | | | Use the same procedure as for 2009, outlined in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
* update nearly all FSF copyright year lists to include 2009Jim Meyering2009-12-291-1/+1
| | | | | | | | | | | | | | | | | | The files named by the following are exempted: grep -v '^#' config/srclist.txt|grep -v '^$' \ | while read src dst; do test -f "$dst" && { echo "$dst"; continue; } test -d "$dst" || continue echo "$dst"/$(basename "$src") done > exempt git ls-files tests/unictype >> exempt In the remaining files, convert to all-interval notation if - there is already at least one year interval like 2000-2003 - the file is maintained by me - the file is in lib/uni*/, where that style already prevails Otherwise, use update-copyright's default.
* Use spaces for indentation, not tabs.Bruno Haible2009-12-101-22/+22
|
* Remove trailing spaces.Bruno Haible2008-05-201-1/+1
|
* Handle the case that floorl and roundl are declared but do not exist.Bruno Haible2007-11-111-2/+2
|
* Implement 'round', 'roundf', 'roundl' modules.Ben Pfaff2007-10-201-0/+154