Commit Graph

541 Commits

Author SHA1 Message Date
Siva Mahadevan acf58d235e build: fix pkgconfig cflags and libdir variables (#284) 2024-01-10 09:52:08 +05:30
Ryonald Teofilo a010123801 Add CMake support (#286)
* Add CMakeLists file to build with CMake, tested with MinGW on Windows x64 and Apple Clang on MacOS arm64

* Use regex to ensure 'AppleClang' also passes under Clang
2024-01-10 09:50:58 +05:30
MarcusCalhoun-Lopez 12f5ffcc99 Fix Apple PowerPC build (#276)
Apple versions of GCC define __ppc__ instead of __powerpc__

Fixes #275
2023-06-24 23:26:52 -04:00
Keno Fischer 1d2c5e3bf5 Restore original fdlibm copyright on sincos files (#265)
These files are derived from the original fdlibm sin/cos files.
While we do already preserve that license notice in LICENSE.md
(so there's no actual license compliance issue here), it's
cleaner to have the copyright notice in the file as well, in
case somebody copies the file out of the repo.
2022-10-18 11:58:47 -07:00
Mark Kittisopikul 0edf8d6929 Remove non-working www subdomain from OpenLibm (#261) 2022-06-06 15:27:33 -07:00
Keno Fischer ae2d916985 Correctly round double precision sqrt (#256)
As discussed in https://github.com/JuliaLang/julia/pull/43786, openlibm's sqrt function is incorrectly rounded for i387. IEEE requires correct rounding for these functions and LLVM relies on it. Fix that by setting the precision in the FPU control word (see e.g. e_ceil.S for similar FPU modifications).
2022-01-19 18:43:52 -05:00
Viral B. Shah 81d5e1603a Add fmod assembly version (#255)
From https://github.com/freebsd/freebsd-src/tree/master/lib/msun/amd64
2021-11-14 22:12:34 -05:00
Viral B. Shah 465ca0a842 Update README.md 2021-11-09 21:32:18 -05:00
xctan 428e7af214 Support for riscv64 architecture (#254)
Changes needed for riscv64 support have been added.
Code for openlibm_fenv_riscv.h, riscv_fpmath.h and fenv.c
was taken from https://github.com/freebsd/freebsd
2021-11-09 21:31:45 -05:00
Viral B. Shah ed7aea3e2b Bump version to 0.8 (#248)
Bump the SOVERSION as well since we have some new exports and such.
2021-09-14 12:35:03 -04:00
jeremyd2019 69bb2804da Another Windows ARM64 fix (#253)
* Another Windows ARM64 fix

include stdint.h to be sure that uint64_t can be used.
This header already had references to uint32_t, so I assumed it was safe to use those typedefs, but a compile error revealed it was not always.

* fix munged whitespace
2021-09-11 08:00:13 -04:00
jeremyd2019 3d4a902f31 Fixes for Windows ARM64 (#251)
* aarch64_fpmath.h: deal with LLP64 (Windows ARM64)

use uint64_t instead of unsigned long, as unsigned long is only 32 bits on Windows

* Make.inc: WINNT aarch64 long double is double

Add to list along with Darwin
2021-09-10 00:09:04 -04:00
jeremyd2019 a9568fbd22 [Windows] install import library to libdir (#249)
import libraries need to go in libdir (`/lib`), while dlls need to be on the PATH so need to be installed to shlibdir (`/bin`)
2021-09-10 00:06:52 -04:00
Dilum Aluthge f88e52a89e CI (Windows): set msys2 {0} as the default shell for all Windows steps (#247) 2021-09-09 19:21:05 -04:00
Dilum Aluthge b48a2f7019 CI (Linux and macOS): Remove the arch variable, which currently has no effect (#246) 2021-09-09 19:18:40 -04:00
Dilum Aluthge 2a47fa5994 CI: A variety of miscellaneous tweaks (#244) 2021-09-09 19:11:54 -04:00
jeremyd2019 d0ef09a62d prefix symbols with _ for 32-bit x86 Windows (#242)
In a case that I believe can only be hit for Clang i686-*-windows-gnu (AKA MinGW), symbols in asm need to be prefixed with `_`.  Fixes #237
2021-09-09 19:04:44 -04:00
jeremyd2019 60dec83e33 msys2 ci (#243)
* add msys2 ci job

* run CI on any branch

* install base-devel on msys2

* remove soname and nodefaultlibs flags from mingw

* avoid soname on Windows

* add OLM_DLLEXPORT to signgam

it needs to be exported from the DLL also

* define IMPORT_EXPORTS on WINNT

While there are function export thunks in the import library that allow the linker to do the right thing for functions even if this is not set, it is required for the linker to do the right thing with variables being imported from a DLL (namely, signgam)

* add OLM_DLLEXPORT to openlibm_fenv_i387.h

seems this whole header was overlooked

* Update openlibm_fenv_i387.h

include openlibm_defs.h for OLM_DLLEXPORT
2021-09-09 18:49:37 -04:00
Viral B. Shah 6ea5fa2408 Merge pull request #240 from JuliaMath/vs/msys
Update ci.yml for Windows and msys2
2021-09-08 20:57:11 -04:00
Viral B. Shah 437c139718 Update ci.yml 2021-09-08 20:54:41 -04:00
Viral B. Shah e9932670c3 Update ci.yml 2021-09-08 20:53:52 -04:00
Viral B. Shah 4a36c50b97 Update ci.yml 2021-09-08 20:53:03 -04:00
Viral B. Shah 24cec17953 Update ci.yml 2021-09-08 20:46:41 -04:00
Viral B. Shah d26ed9871c Update ci.yml 2021-09-08 20:39:10 -04:00
Viral B. Shah 7b9602507e Update ci.yml 2021-09-08 20:37:22 -04:00
Viral B. Shah 7af65db469 Update ci.yml 2021-09-08 20:33:38 -04:00
Viral B. Shah a2e053ee1f Revert "Update ci.yml"
This reverts commit 4a52bb0dcc.
2021-09-08 20:27:54 -04:00
Viral B. Shah 4a52bb0dcc Update ci.yml 2021-09-08 20:26:07 -04:00
Viral B. Shah fb10fcf746 Update ci.yml 2021-09-08 14:35:21 -04:00
Viral B. Shah abf5aaacaf Update ci.yml 2021-09-08 14:32:56 -04:00
Viral B. Shah 98dcc48ba5 Update ci.yml 2021-09-08 14:31:01 -04:00
Viral B. Shah ff822f3e47 Update ci.yml 2021-09-08 14:29:53 -04:00
Viral B. Shah ab8d1ad003 Update ci.yml 2021-09-08 14:22:34 -04:00
Viral B. Shah 4d97e2d5aa Update ci.yml 2021-09-08 14:10:07 -04:00
Viral B. Shah 72caeab740 Update ci.yml 2021-09-08 13:49:18 -04:00
Viral B. Shah 9dd3049e93 Create ci.yml 2021-09-08 13:41:52 -04:00
Viral B. Shah 15119bcec3 Merge pull request #239 from JuliaMath/revert-238-patch-1
Revert "prefix symbols with _ for 32-bit x86 Windows"
2021-09-08 13:35:43 -04:00
Viral B. Shah 4bca0f29b8 Revert "prefix symbols with _ for 32-bit x86 Windows" 2021-09-08 13:35:31 -04:00
Viral B. Shah 3b9454fd7c Merge pull request #238 from jeremyd2019/patch-1
prefix symbols with _ for 32-bit x86 Windows
2021-09-08 13:34:49 -04:00
Viral B. Shah 6ae63186e7 Update src/cdefs-compat.h
Co-authored-by: Elliot Saba <staticfloat@gmail.com>
2021-09-08 13:04:35 -04:00
Viral B. Shah 71a8fd1ccb Merge pull request #233 from lephe/more-long-double-aliases
Add missing aliases for 64-bit long double functions
2021-09-08 08:31:00 -04:00
jeremyd2019 7a3ef59cdb prefix symbols with _ for 32-bit x86 Windows
In a case that I believe can only be hit for Clang i686-*-windows-gnu (AKA MinGW), symbols in asm need to be prefixed with `_`.  Fixes #237
2021-09-07 10:51:31 -07:00
Viral B. Shah a87145707f Merge pull request #230 from PetteriAimonen/master
Replace remaining __strong_alias uses
2021-09-06 23:42:07 -04:00
Viral B. Shah a090d3e614 Fix powf: https://github.com/JuliaMath/openlibm/issues/212#issuecomment-913729312 2021-09-07 03:35:33 +00:00
Lephenixnoir 57dd0f905d add missing weak references for long double functions
This ensures that all standard long double functions are defined when
building with 64-bit long double.
2021-05-20 23:31:35 +02:00
Petteri Aimonen 327b1bdcde Replace remaining __strong_alias uses 2021-03-10 17:25:28 +02:00
Elliot Saba f052f42bb3 Merge pull request #228 from JuliaMath/aa/hypotl
Fix incorrect results in `hypotl` near underflow
2021-02-17 09:04:36 -08:00
Steven G. Kargl 711654eeab Fix incorrect results in hypotl near underflow
Fixes #224.
2021-02-10 12:44:19 -08:00
Viral B. Shah aeab19f47e Fix for #211
Co-authored by: @kargl
2021-02-08 09:39:30 -05:00
Viral B. Shah 5449705906 Merge pull request #227 from JuliaMath/vs/powf
Fix #211
2021-02-06 18:25:12 -05:00