Commit graph

27 commits

Author SHA1 Message Date
Elliot Saba
9c45e36809 Use __clang__ as identifying mark of clang insted of USECLANG 2016-07-20 22:43:05 -07:00
Elliot Saba
39dd4feb7c Bump ulp limits higher for Travis tests 2016-07-20 22:43:05 -07:00
Elliot Saba
48976950cd Remove floating-point exception checks when compiling with clang 2016-07-20 22:40:23 -07:00
Elliot Saba
232ba9db6e Modify Openlibm maximum ulp definitions for clang 2016-07-20 22:40:23 -07:00
Simon Byrne
dcc0d8da74 work around optimisation bugs for rint 2016-02-23 15:40:46 +00:00
Viral B. Shah
c29e8b1b6e Revert "Remove [jy][01n]f(). X/Open only standardizes the double versions."
This reverts commit 8c8693cf79.
2015-11-13 09:06:24 +05:30
Milan Bouchet-Valat
eaee935f48 Remove floating point stack checks in tests
There is no guarantee that the FP stack is preserved, and apparently
this no longer works with modern compilers. #55.
2015-02-22 12:22:57 +01:00
Ed Schouten
d64ea4e5f9 Make small changes to libm-test.c to improve portability.
- Don't define llabs(). This breaks if llabs() is already a macro, which
  is allowed by the C standard/POSIX. llabs() was introduced in C99, so
  I think we can safely assume it is present on all interesting systems.

- Cast the parameters to fabs() to the floating point type. Clang has
  introduced some interesting warnings that trigger if the arguments to
  fabs*() are not the right type.
2015-02-12 14:15:15 +01:00
Ed Schouten
8c8693cf79 Remove [jy][01n]f(). X/Open only standardizes the double versions. 2015-02-12 13:48:13 +01:00
Ed Schouten
ce4982acf8 Remove scalb(). The scalbn() or scalbln() function should be used. 2015-02-12 13:38:13 +01:00
Ed Schouten
7e5585aaca Rename openlibm.h to openlibm_math.h.
This is a bit more consistent with the naming of the other header files
(openlibm_complex.h and openlibm_fenv.h). Re-add an openlibm.h header
that includes all of the public headers as a shorthand.

Fix up all of the source files to include <openlibm_math.h> instead of
<openlibm.h>. While there, fix ordering of the includes.
2015-01-11 23:37:01 +01:00
Viral B. Shah
c485db579d Some fixes to be able to build the system versions of the tests. 2015-01-11 17:43:41 +05:30
Ed Schouten
a2afb267cf Remove switch from tests to include system headers.
We can now simply use -DOPENLIBM_USE_HOST_*_H to do this.
2015-01-09 14:29:56 +01:00
Ed Schouten
8429b82a93 Use proper floating point literals.
signbit() and friends should always take floating point arguments. This
fixes a compiler error when using FreeBSD's own <math.h>.
2015-01-09 14:09:57 +01:00
Ed Schouten
17688c4487 Rename include/fenv.h to <openlibm_fenv.h>.
OpenLibm has an implementation of fenv.h internally. This may be
problematic in case you want it to build against the host system's
implementation, as it would require you to somehow take the fenv.h file
out of the compiler search path.

Simply use a different naming scheme, similar to openlibm.h and
openlibm_complex.h. If we want to build against the host's fenv.h, we
can simply add an '#include <fenv.h>' from within this header.
2015-01-09 13:11:12 +01:00
Viral B. Shah
0e10872a99 Merge pull request #25 from JuliaLang/sf/sincos
sincos()
2013-07-16 00:13:54 -07:00
Elliot Saba
b9a5027251 Modify tests from Darwin specifications to openlibm specifications
Modify specifications regarding exceptions thrown and return values for border conditions for tgamma, y0, y1 and yn functions
2013-07-15 22:28:41 -07:00
Elliot Saba
5b4fb9af72 Uncomment tests for sincos() 2013-07-15 18:29:30 -07:00
Viral B. Shah
abc6c5e76f Revert to commit 87ce7cedda
and disable the building of test-double-system and test-float-system
by default
2012-08-19 17:03:16 +05:30
Viral B. Shah
9355874e4c Make tests build on mac.
Disable test-float-system for now.
2012-08-19 16:43:40 +05:30
Keno Fischer
87ce7cedda Fix build on amd64 linux 2012-08-19 04:15:47 -04:00
Viral B. Shah
5656ce4296 Use the c99 standard rather than gnu99. 2012-07-02 20:25:10 +05:30
Viral B. Shah
e218b57742 nearbyint_test is the only one failing with ARITHMETIC EXCEPTION.
Comment out for now. Rest of the tests go through.
2012-07-02 08:15:12 +05:30
Viral B. Shah
6bb87679fb Compile tests in debug mode. 2012-07-02 08:09:04 +05:30
Viral B. Shah
440055a3b6 Make tests build. 2012-07-02 07:49:00 +05:30
Viral B. Shah
2e2a1b8a9a Some more files for tests 2012-06-10 18:47:39 +05:30
Viral B. Shah
acca6eac7c Add libm-test.c 2012-06-10 18:38:09 +05:30