openlibm icon indicating copy to clipboard operation
openlibm copied to clipboard

High quality system independent, portable, open source libm implementation

Results 44 openlibm issues
Sort by recently updated
recently updated
newest added

When I went through openlibm_fenv_i387.h and added `OLM_DLLEXPORT`, it felt like the `__has_sse`/`__test_sse` symbols should have been private, but they were used by the tests so had to be exported....

Hello, An error occurred when cross compiling with ARCH = aarch64 , the error message says: `aarch64/fenv.c:40:29: error: invalid initializer const fenv_t __fe_dfl_env = `0; how can i solve it?

arm

This example was pointed out by njuffa on scicomp.stackexchange.com. I checked it also with a recent version of Z3 and exact rational arithmetic. ``` # This is the native cpu...

I just ran benchmarks of openlibm (compiled by gcc and clang) and system libm (Glibc), and these were the results: ``` openlibm(gcc) syslibm openlibm(clang) pow : 17.4427 MPS : 69.7010...

with the attached program I get with OpenLibm 0.7.4: $ gcc -fno-builtin test_pow_openlibm.c /localdisk/zimmerma/openlibm-0.7.4/libopenlibm.a -fopenmp $ OMP_NUM_THREADS=1 ./a.out nthreads=1 $ OMP_NUM_THREADS=2 ./a.out nthreads=2 Error for powl(0x8.779021e7c2f81b2p+14982,-0x8.0021b03e1f821c9p-15097), expected 1, got 0x8.8980e8092da8445p-3...

The [musl libm](https://git.musl-libc.org/cgit/musl/tree/src/math) looks really good and reasonably updated. It would be worthwhile to see if we can set up some scripts to extract to update openlibm. Ideally - we'd...

Are there stubs of functions that operate with long double types like `roundl()`, `sinl()` and so on? I can not find it. I found such stubs in glibc and newlib,...

https://software.intel.com/content/www/us/en/develop/articles/the-difference-between-x87-instructions-and-mathematical-functions.html http://notabs.org/fpuaccuracy/index.htm https://github.com/JuliaMath/openlibm/issues/11

the attached program gives +Inf for x=-0xd.b6e8f5c28f5c29p+7l, whereas glibc gives 0x0.01dbd551da54538p-16385 which is the correctly rounded result. [test_tgamma_openlibm.c.gz](https://github.com/JuliaMath/openlibm/files/5923918/test_tgamma_openlibm.c.gz)

The functions erf and erfc computed with arbitrary precision and explicit error bounds S.Chevillard1 Information and Computation Volume 216, July 2012, Pages 72-95 https://doi.org/10.1016/j.ic.2011.09.001 https://www.sciencedirect.com/science/article/pii/S0890540112000697 This is a placeholder issue...