Commit graph

447 commits

Author SHA1 Message Date
Dan Horák
2a1e56858a s390(x) port 2018-11-07 12:11:15 +01:00
Viral B. Shah
cca41bc1ab Merge branch 'master' of github.com:JuliaMath/openlibm 2018-06-18 18:14:22 -04:00
Viral B. Shah
74b54c71f7 Add MIPS 2018-06-18 18:13:49 -04:00
Alex Arslan
ce69bf1f32
Update references to JuliaLang to point to JuliaMath (#182) 2018-06-18 14:48:23 -07:00
Viral B. Shah
a96f0740e3
Merge pull request #130 from ginggs/enable-optimization-again
Enable optimization again for *int.c and *intf.c
2018-06-18 17:22:47 -04:00
Viral B. Shah
c782ca2e84
Merge pull request #177 from JuliaMath/aa/windows
Add Windows testing with AppVeyor
2018-06-18 16:44:17 -04:00
Viral B. Shah
52df60bfd3 Update appveyor.yml 2018-06-18 16:10:52 -04:00
Alex Arslan
ce33de1ca9 Add Windows testing with AppVeyor 2018-06-18 16:10:52 -04:00
Viral B. Shah
4971b56998
Update Make.inc 2018-06-18 16:06:34 -04:00
Viral B. Shah
ca996acc2e
Merge pull request #180 from JuliaLang/ginggs-0.5.6
Bump version to 0.5.6
2018-06-18 16:01:46 -04:00
Viral B. Shah
73b3d88ef1
Merge pull request #181 from CDLuminate/mipsport
Updated MIPS port
2018-06-18 16:01:04 -04:00
Viral B. Shah
3aa5c3bc47
Merge pull request #174 from iniserve/master
Consider:  Add TOOLPREFIX
2018-06-18 15:58:43 -04:00
Viral B. Shah
4b4b41c941
Merge pull request #178 from JuliaLang/aa/upstream
msun: signed overflow in atan2
2018-06-18 15:55:46 -04:00
Mo Zhou
a4b3fdeb76 travis: Add mips, mipsel, mips64el build. 2018-06-04 10:02:35 +00:00
Mo Zhou
ad9673e637 Makefile: clean mips/*.o 2018-06-04 09:38:27 +00:00
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
Graham Inggs
a24a5ebb6e Enable optimization again for *int.c and *intf.c 2018-05-26 12:41:07 +02:00
Graham Inggs
a40570be06
Bump version to 0.5.6 2018-05-26 11:36:57 +02:00
Jeff Walden
787652b054
msun: signed overflow in atan2
As a component of atan2(y, x), the case of x == 1.0 is farmed out to
atan(y). The current implementation of this comparison is vulnerable
to signed integer underflow (that is, undefined behavior), and it's
performed in a somewhat more complicated way than it need be. Change
it to not be quite so cute, rather directly comparing the high/low
bits of x to the specific IEEE-754 bit pattern that encodes 1.0.

Note that while there are three different e_atan* files in the
relevant directory, only this one needs fixing. e_atan2f.c already
compares against the full bit pattern encoding 1.0f, while
e_atan2l.cuses bitwise-ands/ors/nots and so doesn't require a change.

Incorporated from FreeBSD source tree. See:
b21ccf63f2
2018-04-07 10:35:06 -07: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
warpcoil
8d91ecb38a Add TOOLPREFIX 2017-12-21 20:35:54 +00: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