e2da0daf | 14-Jan-2019 |
Jeremy Soller <jeremy@system76.com> |
Rename to OLM_LONG_DOUBLE |
cecfae79 | 18-Nov-2018 |
Jeremy Soller <jeremy@system76.com> |
For some sad reason, gcc poisons LONG_DOUBLE in sreal.c. The identifier has been changed to OPENLIBM_LONG_DOUBLE |
2a1e5685 | 05-Sep-2016 |
Dan Horák <dan@danny.cz> |
s390(x) port |
73b3d88e | 18-Jun-2018 |
Viral B. Shah <viral@juliacomputing.com> |
Merge pull request #181 from CDLuminate/mipsport
Updated MIPS port |
4f5112ea | 24-Jan-2017 |
Radovan Birdic <Radovan.Birdic@imgtec.com> |
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 |
787652b0 | 07-Apr-2018 |
Jeff Walden <jwalden@mit.edu> |
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 (
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: https://github.com/freebsd/freebsd/commit/b21ccf63f28a3a4692d8a31419e0a725a1b1a800
show more ...
|
72bfab46 | 06-Apr-2018 |
Alex Arslan <ararslan@comcast.net> |
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 warnin
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.
show more ...
|
d134c84e | 26-Jan-2018 |
Takuya Nakaoka <takuyan@google.com> |
Fix reversed outputs of sincosl |
3db5e546 | 30-Nov-2017 |
Patrick Kofod Mogensen <patrick.mogensen@gmail.com> |
Minor typo in expm1 comment
`exp(+-inf)={inf, 0}`, so... |
c3968ca1 | 22-Sep-2017 |
Alex Arslan <ararslan@comcast.net> |
Allow building on DragonFly BSD (#167) |
b5b63ba6 | 27-Jul-2017 |
Martin Lucina <martin.lucina@docker.com> |
Enable long double functions for aarch64
Per discussion in #157, it is correct to enable these for aarch64. |
c2145306 | 15-Jan-2017 |
Elliot Saba <staticfloat@gmail.com> |
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 th
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.
show more ...
|
5fd9dcbb | 03-May-2016 |
Keno Fischer <kfischer@college.harvard.edu> |
Fix incorrect attribute as a result of blanket rename |
28fb939b | 14-Mar-2016 |
Keno Fischer <kfischer@college.harvard.edu> |
Blanket rename DLLEXPORT->OLM_DLLEXPORT |
81053b7f | 13-Mar-2016 |
Keno Fischer <keno@juliacomputing.com> |
Fix Clang warnings on Windows
- Align DLLEXPORT in definitions and declations. There is still a few cases left, where the declation in the compiler's complex.h disagrees with the implementation
Fix Clang warnings on Windows
- Align DLLEXPORT in definitions and declations. There is still a few cases left, where the declation in the compiler's complex.h disagrees with the implementation here. For now we can't do anything about that, but maybe should be revisited in the future. - Fix the syntax on an .ascii directive that gcc accepted mistakingly, but clang does not.
show more ...
|
e836b30c | 08-Mar-2016 |
Milan Bouchet-Valat <nalimilan@club.fr> |
Avoid defining __pure2 if already defined
This gets rid of a warning on Mac OS X due to the fact that sys/cdefs.h defines it already. |
226faf4e | 03-Mar-2016 |
Milan Bouchet-Valat <nalimilan@club.fr> |
Avoid redefining __pure2 in types-compat |
2c3f3b5a | 28-Feb-2016 |
Milan Bouchet-Valat <nalimilan@club.fr> |
Cleanup bsd_cdefs.h, merge i387 and amd64 duplicate files
Most macros were not actually used. This gets rid of warnings when building on Linux. |
b5ca785d | 27-Feb-2016 |
Milan Bouchet-Valat <nalimilan@club.fr> |
Avoid redefining endianness macros with some gcc versions
_LITTLE_ENDIAN and _BIG_ENDIAN are built-in on some platforms/versions. Better use __ORDER_LITTLE_ENDIAN__, __ORDER_BIG_ENDIAN__ and __BYTE_
Avoid redefining endianness macros with some gcc versions
_LITTLE_ENDIAN and _BIG_ENDIAN are built-in on some platforms/versions. Better use __ORDER_LITTLE_ENDIAN__, __ORDER_BIG_ENDIAN__ and __BYTE_ORDER__, which are standard for gcc and clang, and define them when they are missing. Also remove the special-case for FreeBSD, which is apprently not needed.
show more ...
|
949c5309 | 27-Feb-2016 |
Milan Bouchet-Valat <nalimilan@club.fr> |
Fix misleading indentation (spotted by GCC 6) |
62c7361a | 27-Feb-2016 |
Ed Schouten <ed@nuxi.nl> |
Suppress a compiler warning generated by Clang.
Clang doesn't like it if you bitshift negative numbers, as the behaviour of it is undefined. Solve this by first shifting, followed by negating. This
Suppress a compiler warning generated by Clang.
Clang doesn't like it if you bitshift negative numbers, as the behaviour of it is undefined. Solve this by first shifting, followed by negating. This was fixed similarly in FreeBSD.
show more ...
|
78c0afb2 | 27-Feb-2016 |
Ed Schouten <ed@nuxi.nl> |
Rename _scan_nan() to __scan_nan().
The current tradition of openlibm is to hide all of its internal symbols into the reserved system namespace. CloudABI has a check in place to ensure that its C li
Rename _scan_nan() to __scan_nan().
The current tradition of openlibm is to hide all of its internal symbols into the reserved system namespace. CloudABI has a check in place to ensure that its C library (which contains openlibm) to not place any unwanted symbols into the public namespace. openlibm seems to leak _scan_nan() in there, so we'd better add an additional underscore.
show more ...
|
05f9de6c | 24-Feb-2016 |
Viral B. Shah <viral@mayin.org> |
Revert "moved src/cdefs-compat.h -> include/cdefs-compat.h"
This reverts commit 07a535e55dc2a725b08cd7304b1d6e1d7039a619. |
07a535e5 | 24-Feb-2016 |
Viral B. Shah <viral@mayin.org> |
moved src/cdefs-compat.h -> include/cdefs-compat.h |
830dc991 | 22-Feb-2016 |
Simon Byrne <simonbyrne@gmail.com> |
Support powerpc
This fixes #113, based on files from FreeBSD. Tested on machine hosted by [OSUOSL](http://osuosl.org/services/powerdev/). |