Commit graph

36 commits

Author SHA1 Message Date
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
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
Viral B. Shah
6e43adff39 Checkin Jameson's inf_torture.c 2012-01-06 09:08:30 +05:30