Commit graph

428 commits

Author SHA1 Message Date
Radovan Birdic
4dcc76ed96 Using cdefs-compat.h and stdint.h instead <sys/types.h>
fenv-softfloat.h file added
SOFTFLOAT code parts are not tested.
2018-06-04 09:38:27 +00:00
Radovan Birdic
4f5112ea59 Support for mips architectures
Changes needed for mips suport have been added.
Code for openlibm_fenv_mips.h, mips_fpmath.h and fenv.c
was taken from https://github.com/freebsd/freebsd
2018-06-04 09:38:27 +00:00
Alex Arslan
a844d584d3
Merge pull request #176 from JuliaLang/aa/openbsd
Fixes for building on OpenBSD
2018-04-07 10:25:01 -07:00
Alex Arslan
72bfab46a0
Avoid redefining macros defined by the system
In particular, OpenBSD already defines __GNUC_PREREQ__, __BEGIN_DECLS,
and __warn_references. Hiding the definitions behind #ifndef guards
avoids warnings when building.
2018-04-06 14:41:06 -07:00
Alex Arslan
48c6c2c2ac
Use cp -RpP instead of cp -a
OpenBSD does not support cp -a, and cp -RpP should work on all
platforms.
2018-04-06 14:06:14 -07:00
Alex Arslan
bf188aeb23
Build with Clang on OpenBSD
This is the default compiler starting with OpenBSD 6.2, and has been
installed by default on OpenBSD since 6.0.
2018-04-06 14:04:45 -07:00
Simon Byrne
b7b3b4bc31
Merge pull request #175 from takuyanakaoka/fix-sincosl
Fix reversed outputs of sincosl
2018-02-02 11:06:46 -08:00
Takuya Nakaoka
d134c84e91 Fix reversed outputs of sincosl 2018-01-26 15:33:30 +09:00
Simon Byrne
c99ab08afe
Merge pull request #173 from pkofod/patch-1
Minor typo in expm1 comment
2017-11-30 10:14:04 -08:00
Patrick Kofod Mogensen
3db5e546e4
Minor typo in expm1 comment
`exp(+-inf)={inf, 0}`, so...
2017-11-30 13:19:33 +01:00
Yichao Yu
b2520473c2 Merge pull request #168 from JuliaLang/yyc/ld128
Fix compilation on AArch64
2017-10-23 21:36:37 -04:00
Yichao Yu
238a90959f Fix compilation on AArch64
The 128bit double directory is missing and was never used....
2017-10-21 09:58:16 -04:00
Elliot Saba
3ff5216a2f Merge pull request #162 from JuliaLang/aa/0.5.5
Bump version to 0.5.5
2017-10-16 23:40:02 -07:00
Elliot Saba
7cf4e9eac0 Merge pull request #164 from iblis17/test-cflags
test: append $(CFLAGS_add), which includes fno-builtin
2017-10-16 23:29:50 -07:00
Elliot Saba
bd6d0e1f6b test: update ulps for yn
Ref: https://github.com/JuliaLang/openlibm/pull/164#issuecomment-327993928
2017-10-17 09:52:21 +08:00
Iblis Lin
400407ea40 test: append $(CFLAGS_add), which includes fno-builtin 2017-10-15 14:29:59 +08:00
Simon Byrne
ddf649beab enable -fno-strict-aliasing for clang (#156)
Type punning via unions in clang is not safe without -fno-strict-aliasing. See https://bugs.llvm.org//show_bug.cgi?id=31928.
2017-09-22 13:24:07 -07:00
Alex Arslan
c3968ca11f Allow building on DragonFly BSD (#167) 2017-09-22 13:22:43 -07:00
Alex Arslan
7e726c3107
Bump version to 0.5.5 2017-09-06 11:11:47 -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
0598080ca0 Merge pull request #158 from mato/aarch64-frexpl
Enable long double functions for aarch64
2017-07-31 08:13:43 -07:00
Martin Lucina
b5b63ba66d Enable long double functions for aarch64
Per discussion in #157, it is correct to enable these for aarch64.
2017-07-27 13:29:33 +00:00
Viral B. Shah
ba43b3616c Merge pull request #151 from JuliaLang/sf/archmageddon
Fixup architecture woes
2017-01-20 13:17:00 +05:30
Elliot Saba
d6c4935dea Add testing for ppc64le and arm architectures on Travis 2017-01-16 11:44:15 -08:00
Elliot Saba
d982368bec Fix arm floating-point status register code
* Use an actual compiler definition to determine whether we have a
  floating-point unit or not.

* Use a modern (VFPU) assembly instruction to get/set the fpsr

* If we don't have an fpsr, at least zero out the return value
2017-01-16 11:44:14 -08: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
Tony Kelman
1581174c85 Merge pull request #146 from twadleigh/dll-a-for-windows
Version bump for Makefile change.
2016-08-28 09:17:43 -07:00
Tracy Wadleigh
868231bc24 Version bump for Makefile change. 2016-08-28 07:55:19 -07:00
Tony Kelman
b6b8422bc2 Merge pull request #145 from twadleigh/dll-a-for-windows
Generate libopenlibm.dll.a for windows.
2016-08-28 02:54:45 -07:00
Tracy Wadleigh
6708c96b06 Generate libopenlibm.dll.a for windows. 2016-08-27 16:55:43 -07:00
Elliot Saba
c0566d25e6 Merge pull request #133 from JuliaLang/sf/clang_on_linux
[WIP] Test linux clang on Travis
2016-08-22 13:48:54 -05:00
Keno Fischer
e7e2050266 Fix invalid assembly directive caught by clang
Similar to the x86_64 changes a while back
2016-08-21 18:45:29 -04:00
Simon Byrne
71e79eb6f7 Bump version for Makefile change. 2016-08-09 09:47:12 +01:00
Simon Byrne
1492ff029a Merge pull request #142 from JuliaLang/sf/cflags
Set optimization level only if not already overridden
2016-08-09 09:28:35 +01:00
Elliot Saba
75ec57d90f Set optimization level only if not already overridden 2016-08-08 17:27:20 -07:00
Viral B. Shah
0fa599cce8 BUMP VERSION 2016-08-06 20:30:31 +05:30
Viral B. Shah
f8d64df596 Restore the optimization level to -O3 by default. 2016-08-06 20:19:14 +05:30
Elliot Saba
b5e67495ba Try adding a matrix build for clang on linux 2016-07-20 22:44:22 -07: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
343a7199c0 Re-enabled OSX 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
Tony Kelman
b170b72c0e Merge pull request #140 from arjenroodselaar/split-install-target
Split install into subtargets
2016-07-19 15:30:31 -07:00
Arjen Roodselaar
4002a91a44 Split install into subtargets
When building a cross-compile toolchain for a freestanding platform one may not
want to build and install shared objects.
2016-07-19 14:26:15 -07:00
Viral B. Shah
5dd13830bf Merge pull request #141 from arjenroodselaar/fix-arm-decls
Include missing decls for ARM
2016-07-19 15:46:33 -04:00
Arjen Roodselaar
212f8a1b4c Include missing decls for ARM 2016-07-18 17:05:09 -07:00
Elliot Saba
705cbaea30 Merge pull request #139 from petercolberg/travis
Test Linux amd64/i686/arm64
2016-06-24 14:49:28 -07:00
Peter Colberg
806c725ef6 Test Linux arm64 using qemu user emulation 2016-06-23 23:32:31 -04:00
Peter Colberg
aeaf9cefa7 Fix undefined reference to __fpgetprec on i386
Closes #137

This reverts commit ebcd40f1b0.

The tests were failing to load the library on i386 due to an undefined
reference to __fpgetprec, which resulted from __fpgetprec not being inlined
due to the missing definition of __GNUCLIKE_ASM and __CC_SUPPORTS___INLINE__.
2016-06-23 23:32:31 -04:00