Commit graph

54 commits

Author SHA1 Message Date
Alex Arslan
c3968ca11f Allow building on DragonFly BSD (#167) 2017-09-22 13:22:43 -07:00
Alex Arslan
b11e72b288 Set the RPATH for the test binaries on FreeBSD (#161) 2017-09-06 11:08:25 -07:00
Elliot Saba
c21453060d Cleanup ARCH handling, reorganize AArch64 and Make.inc.
* Previously, behavior differed if the same value of `ARCH` was defined
  within `Make.inc` or defined on the command line.  Don't do that.

* Provide saner defaults for `ARCH` and `MARCH`, and more importantly,
  allow for the proper overriding of both.

* Split `AArch64` code further away from the other `arm` code.
2017-01-16 11:44:14 -08:00
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
Viral B. Shah
02e0bbc7c5 Revert "Add -fno-builtin to the tests as well."
This reverts commit f7a18b519d.
2016-03-02 23:34:32 +05:30
Viral B. Shah
f7a18b519d Add -fno-builtin to the tests as well. 2016-02-28 00:05:21 +05:30
Simon Byrne
dcc0d8da74 work around optimisation bugs for rint 2016-02-23 15:40:46 +00:00
Peter Colberg
ebed203c04 Remove superfluous compiler flags for tests
-O2 is the default, and -g should be set in CFLAGS if needed.
2015-11-13 13:19:51 -05:00
Viral B. Shah
4c8740ad58 Import these fixes from upstream.
0563b7a42b/lib/msun/src/e_j0f.c

Fix test build on OS X.
2015-11-13 09:16:51 +05:30
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
Peter Colberg
bab41fc510 Test shared library
Add make check target that builds and runs the tests.
2015-11-12 14:56:08 -05:00
Graham Inggs
395d998567 Fix missing buildflags
Debian's blhc (build log hardening check) reports dpkg-buildflags-missing CPPFLAGS 48 (of 223), CFLAGS 2 (of 177), LDFLAGS 2 (of 3) missing
2015-10-26 07:15:39 +02:00
Alexander Light
f70240ded5 Add support for cross compiling with ARCH=name
This is rather basic. A clean is needed to get rid of artifacts from
previous runs with other architectures.

Note this requires PR #88 to work because without it x86 is broken.

Closes #89
2015-03-01 15:09:22 -05:00
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
Simon Byrne
d5140c2d34 change include path to build on linux, fix .gitignore 2014-12-05 09:33:07 +00:00
Viral B. Shah
557ac71eaf Add license information to libm-bench.cpp 2014-12-05 10:34:39 +05:30
Viral B. Shah
691b989ba3 Remove files with problematic license. Fix #33. 2014-12-04 21:50:53 +05:30
Viral B. Shah
d64cc364e0 Add make bench for building the benchmarks 2014-12-04 21:27:19 +05:30
Viral B. Shah
1baf1d3e47 Update gitignore 2014-12-04 17:47:20 +05:30
Viral B. Shah
e919db5f97 Merge branch 'master' of github.com:JuliaLang/openlibm 2014-12-04 17:46:46 +05:30
Viral B. Shah
5f1aa85344 Add @lindahua 's libm benchmark. 2014-12-04 17:46:19 +05:30
Viral B. Shah
2c9b14cabd Merge pull request #67 from eschnett/master
Simplify code, avoid compiler warnings
2014-12-02 09:50:49 +05:30
Erik Schnetter
f5b2148a22 Use CFLAGS to build self-tests 2014-09-22 23:26:22 -04:00
Sébastien Villemot
275d0df327 Increase single-precision test tolerance for erfc(1.2) and yn(3, 0.7).
Closes #53
2014-07-29 12:24:09 +02: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
Jameson Nash
b9dbcf8247 update gitignore for WIN32 exe files 2012-11-09 02:29:25 -05:00
Stefan Karpinski
820c38cbd2 git ignore test/test-{float,double}.dSYM 2012-10-27 17:22:09 -04:00
Mike Nolta
08fafa36a8 add missing 'test-double' to test/.gitignore 2012-10-27 17:03:20 -04:00
Viral B. Shah
1ac594e475 Quiet the clang build.
Rename cleanall target to distclean.
2012-10-27 10:17:38 +05:30
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
954416926f Update clean target 2012-07-02 08:09:50 +05:30
Viral B. Shah
6bb87679fb Compile tests in debug mode. 2012-07-02 08:09:04 +05:30
Viral B. Shah
419c14934d Update deps 2012-07-02 08:02:24 +05:30