Commit graph

31 commits

Author SHA1 Message Date
Graham Inggs
ebe1db3ce4 Build on GNU/kfreeBSD and GNU/Hurd
Use __GLIBC__ instead of __linux
Simplify Make.inc as per JuliaLang/openspecfun@e91925a
2015-11-10 21:38:51 +02:00
Ed Schouten
c08bd962f2 Remove the non-standard finite() function. 2015-02-12 13:35:19 +01:00
Ed Schouten
eca4ac8bf1 Remove the non-standard significand() function. 2015-02-12 13:28:37 +01:00
Viral B. Shah
388f0f1d32 Remove unused Symbol.map files. 2015-02-01 19:41:55 +05:30
Ed Schouten
93aef7f9b1 Remove $ARCH/openlibm_fenv.h.
It seems I accidentally copied these headers twice in
d07820351b. We should only have them in
include/.
2015-01-11 18:55:04 +01:00
Ed Schouten
bc3f903bc2 Move public headers into include/ and private headers into src/.
While there, also modify the install target. We should make sure to
install all openlibm*.h headers. There is still some work to be done:
openlibm_fenv_*.h still depends on some additional bits. I'd propose
that we eventually create an include/openlibm_cdefs.h that contains all
of the macros we need.
2015-01-11 16:35:32 +01:00
Ed Schouten
d07820351b Rename the fenv headers.
I guess the idea would be to eventually also install all of the
openlibm*.h headers, instead of just openlibm.h. Make openlibm_fenv.h
suitable for this purpose by moving all of the $ARCH/fenv.h headers next
to it.

We actually need this change to make OPENLIBM_USE_HOST_FENV_H work.
Right now it's still broken, because the "#include <fenv.h>" performed
by openlibm_fenv.h still pulls in $ARCH/fenv.h as $ARCH/ is added to the
compiler include path.
2015-01-10 10:21:57 +01:00
Ed Schouten
42177873f8 Remove weak reference construct from fenv code.
I grepped through the FreeBSD source tree and for me, it seems to be
totally unclear why these two specific functions are weak references.
Such a construct is commonly used by FreeBSD's threading library
(libthr) to override certain functions, but I can't find any traces of
that.

Just use the function name directly. This fixes a compiler warning as
well (-Wmissing-prototypes).
2015-01-10 09:41:32 +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
Jameson Nash
923ff3768f don't use system machine/npx.h on OS X either, since it may not exists and isn't necessary 2014-06-27 17:45:02 -05:00
Jameson Nash
5f4979e5d1 work around msvc bug where .model must be on its own line or it forgets about it 2014-03-18 22:03:14 -04:00
Jameson Nash
995c70eaf7 add win64 compat definitions also 2014-03-18 21:40:07 -04:00
Jameson Nash
2eb1876bb8 add more windows compatibility definitions 2014-03-18 21:22:51 -04:00
Jameson Nash
66e6f8ea91 normalize __WIN32__ to _WIN32, which is defined by all Windows compilers 2014-03-18 20:47:48 -04:00
Milan Bouchet-Valat
0affa5be19 Enable stack protection in all .S files
Hardware stack protection is required by most distributions.
See https://wiki.gentoo.org/wiki/Project:Hardened/GNU_stack_quickstart
2013-12-21 21:19:54 +01:00
Jameson Nash
9b23967282 provide fenv functions on windows 2013-08-27 21:12:53 -04:00
Jameson Nash
18f475de56 add DLLEXPORT to i387 and amd64 assembly (win32 target) and ld80/ld128 files 2013-08-03 05:52:19 -04:00
Jameson Nash
3c8738e642 fix amd64 asm syntax for windows 2013-03-02 22:50:35 -05:00
Jeff Bezanson
1b9b759b48 add exported names for ldexp 2013-03-02 21:11:39 -05:00
Jeff Bezanson
5e08d588a9 change licenses to reflect that the "Winning Strategies, Inc." code has been placed in the public domain 2012-11-23 19:19:01 -05:00
Keno Fischer
87ce7cedda Fix build on amd64 linux 2012-08-19 04:15:47 -04:00
Viral B. Shah
52dd430ac8 Don't use fsin and fcos.
close #11
2012-08-19 13:15:52 +05:30
Keno Fischer
1b13e29e37 Use our headers on linux 2012-05-29 18:20:52 -04:00
Keno Fischer
fed038b32f Remove Leftover Makefiles from old build system 2012-05-26 17:06:20 -04:00
Keno Fischer
4bd079aec9 Small change to exported symbol names on windows 2012-05-25 21:33:12 -04:00
Keno Fischer
adb103acec Build fixes for Windows 2012-05-25 21:25:13 -04:00
Keno Fischer
307d7361c5 automatic arch selection in Makefile 2012-05-25 16:24:37 -04:00
Keno Fischer
f0862df1db Allow compilation of assembly files on OSX 2012-05-24 23:14:58 -04:00
Viral B. Shah
51a63c3270 Comment out __FBSDID 2011-12-15 11:46:26 +05:30
Viral B. Shah
16b9264f9d Import entire msun from FreeBSD. 2011-12-15 11:29:35 +05:30
Viral B. Shah
aba7ae910f Initialize repo. FreeBSD 8.2 msun code + some tweaks 2011-08-13 00:31:25 +05:30