summaryrefslogtreecommitdiff
path: root/lib/libm
AgeCommit message (Collapse)Author
2023-07-09libm: Add missing fma(3) and friends for sh3.rin
2023-06-11Correct history (Brad Smith)christos
2023-05-08fix cross references (from Anon Ymous)christos
2023-05-07RISC-V support that works on QEMU with a single hart.skrll
Thanks for Simon Burge for plic(4).
2023-04-10libm: suppress lint warning about '>>' on signed integerrillig
GCC has implementation-defined behavior for that case.
2023-03-23libm: Bump minor for new long double transcendental functions.riastradh
XXX Still missing: remquol, remainderl.
2023-03-14Add (newly added): expm1l log1pl log2l lgammal tgammalkre
so that the library gets the correct symbols defined in it.
2023-03-13libm: Need <math.h> for __HAVE_LONG_DOUBLE.riastradh
Fixes missing definitions of lrintl, llrintl on various platforms.
2023-03-13libm: Fill in more dummy long double transcendental functions.riastradh
This should cover everything from C99.
2022-12-04lib: Mark up error names in man pages with .Eruwe
2022-08-29libm: Fix some whitespace issues in recent sincos additions.riastradh
2022-08-28s_rint.c: weak-alias rintl -> rint for ports without __HAVE_LONG_DOUBLE.he
2022-08-28s_sincos.c: use correct order of __weak_alias() arguments...he
2022-08-28s_sincos.c: use __weak_alias and not __weak_reference.he
Fixes build on NetBSD/macppc, thanks to hint from riastradh@
2022-08-28only alias sincos to sincosl when we don't have long doubleschristos
2022-08-27tuck in k_sincosl.h include inside __HAVE_LONG_DOUBLEchristos
2022-08-27Fix vax build.christos
2022-08-27Add sincos{,f,l} from FreeBSDchristos
2022-08-24sync with FreeBSD; bring some more inline functions.christos
2022-06-23Use "fmadd" to implement fma(3) on ppc.martin
2022-06-23libm: build fma(3), fmaf(3), fmal(3) on powerpc.he
For now this builds the C version, for completeness, so that e.g. lang/ocaml can be configured & built. However, googling reveals that powerpc does have a "fused multiply add" instruction, ref. https://www.ibm.com/docs/en/aix/7.1?topic=set-fmadd-fma-floating-multiply-add-instruction so this could probably be taken advantage of for a more optimized version.
2022-04-19lib: remove CONSTCOND commentrillig
Since 2021-01-31, lint doesn't need it anymore for the common pattern of 'do ... while (0)'.
2022-04-16fix various typos in comments and log messages.andvar
2022-04-04fix various typos, mainly in comments.andvar
2022-03-24s/interger/integer/ and s/Compensatin/Compensation/ in comments.andvar
2021-12-05s/argumetn/argument/ in comment.msaitoh
2021-11-01fix typos, mainly in words minimum and maximum, but also few others.andvar
2021-09-03fix typos in comments, mainly s/extention/extension/ and s/sufficent/sufficient/andvar
2021-08-19s/memry/memory+s/softare/software/+s/grapics/graphics+s/ouput/outputandvar
2021-08-12fix typos in "environment" word.andvar
2021-07-21libm: build fma(3), fmaf(3), fmal(3) on alphatnn
Alpha has no hardware-assisted fused multiply-add, so the fallback C implementation must be used. A basic smoke test shows the implementation works for "x * x - 1.0f" vs "fmaf(x, x, -1.0f)" with "volatile float x = 1.0008f;"
2021-07-06Ensure that the stack is always 16-byte aligned by rounding sizes as needed.thorpej
All changes from rin@ except swapcontext.S, which is from me (added symbolic constants to make the code clearer).
2021-06-16PR port-arm/55897rin
Fix ABI mismatch for armhf runtime routines for floating-point arithmetics; For hard-float arm variants, provide (1) generic runtime routines with correct calling convention, and (2) EABI runtime routines at the same time. I've confirmed that no binary changes for kernels. LGTM by skrll
2021-04-25Use ${MACHINE_MIPS64}christos
2021-04-12add a default: case to __kernel_standard(), failing with EDOMmrg
2020-01-30Provide frexpl on non-long-double systems as alias to frexp.joerg
2019-11-11Update LLVM to 10.0.0git (01f3a59fb3e2542fce74c768718f594d0debd0da)joerg
2019-10-26Separate the NetBSD-specific fenv functions from the standard ones.christos
No functional change.
2019-10-11Add manpage links for frexpf and frexpl.nros
Manpage links were missing for frexpf and frexpl even thogh they were mentioned in the manpage for frexp.
2019-09-02Start documenting historysevan
https://www.bell-labs.com/usr/dmr/www/man31.pdf
2019-09-02log appeared in v1sevan
https://www.bell-labs.com/usr/dmr/www/man31.pdf
2019-09-02exp was present in v1sevan
https://www.bell-labs.com/usr/dmr/www/man31.pdf
2019-08-25Fix feraiseexcept.riastradh
- Don't touch the trap flags (though on all ARMv8 I know they have no effect anyway). - Don't clear any existing raised exception flags; just add to them. XXX atf test XXX pullup-9
2019-08-25Fix fesetenv and feupdateenv.riastradh
- fesetenv is supposed to set the stored rounding mode (and stored trap settings, but they have no effect on any ARMv8 I know). - feupdateenv is supposed to re-raise the exceptions that were raised in the environment when it was called. XXX atf test XXX pullup-9
2019-05-02Explicitly indicate that nexttowardl() is identical to nextafterl().mgorny
Requested by kamil.
2019-04-28Remove undefined \*Hwiz
2019-04-27Add a C99 symbol to libm: nexttowardlkamil
It's an alias for an already existing symbol nextafterl. Patch obtained from <mgorny> Detected by the LLVM buildbot breakage in tests.
2019-04-26Remove unused 387 implementations.maya
These were removed from the build for being wrong, but the implementation stayed around. This is confusing, we have the attic for old code, let's delete the unused implementations.
2019-04-25document cosl with MLINKS and in the man pagemaya
2019-04-17also want s_nexttoward.c on riscv. now tests/lib/libm links.mrg