Bruno Haible
ab1bdfa524
Avoid compilation errors with MSVC option -fp:strict.
...
* lib/floor.c: Use MSVC specific pragma fenv_access.
* lib/ceil.c: Likewise.
* lib/trunc.c: Likewise.
* lib/round.c: Likewise.
* lib/rint.c: Likewise.
* lib/fma.c: Likewise.
* lib/integer_length.c: Likewise.
* m4/round.m4 (gl_FUNC_ROUND): Likewise.
* m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
* tests/test-floor2.c: Likewise.
* tests/test-floorf2.c: Likewise.
* tests/test-ceil2.c: Likewise.
* tests/test-ceilf2.c: Likewise.
* tests/test-trunc2.c: Likewise.
* tests/test-truncf2.c: Likewise.
Reported by Michael Goffioul <michael.goffioul@gmail.com >.
2012-02-28 11:50:03 +01:00
Jim Meyering
1602f0afed
maint: update all copyright year number ranges
...
Run "make update-copyright".
2012-01-01 10:04:58 +01:00
Jim Meyering
d60f3b0c6b
maint: update almost all copyright ranges to include 2011
...
Run the new "make update-copyright" rule.
2011-01-01 22:12:59 +01:00
Bruno Haible
7d056a378a
trunc: Implement result sign according to IEEE 754.
...
* lib/trunc.c (MIN, MINUS_ZERO): New macros.
(FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
* tests/test-trunc2.c: Include minus-zero.h.
(MINUS_ZERO): New macro.
(trunc_reference): Keep in sync with lib/trunc.c.
* tests/test-truncf2.c: Include minus-zero.h.
(MINUS_ZERO): New macro.
(truncf_reference): Keep in sync with lib/trunc.c.
* tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
* tests/test-trunc-ieee.c (main): Likewise.
* tests/test-truncl-ieee.c (main): Likewise.
2010-12-22 16:08:29 +01:00
Bruno Haible
ba564f2164
Fix side effects from tests-related modules.
2010-04-09 02:02:15 +02:00
Jim Meyering
b2e2010c7c
update nearly all FSF copyright year lists to include 2010
...
Use the same procedure as for 2009, outlined in
http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
2010-01-01 10:42:00 +01:00
Bruno Haible
987e5651e8
Refactor common macros used in tests.
2009-12-24 21:01:42 +01:00
Bruno Haible
441aa3044f
Use spaces for indentation, not tabs.
2009-12-10 20:28:30 +01:00
Ben Pfaff
f2bbde92e4
Rename isnand.h to isnand-nolibm.h, similarly for isnanf.h.
2008-07-12 11:27:12 -07:00
Bruno Haible
e220635fc9
Flush the standard error stream before aborting.
2008-04-11 16:31:39 +02:00
Bruno Haible
b17d7ac7df
Rename isnan, applicable to 'double' only, to isnand.
2008-01-26 15:17:58 +01:00
Bruno Haible
c532b2a8ef
Don't rely on excess precision: -4 > -3.00000024 - 1 can evaluate to false
...
if the CPU rounds correctly to nearest.
2007-10-20 14:34:54 +02:00
Bruno Haible
ac328d5c86
Add new test for trunc function.
2007-10-13 02:14:52 +02:00