History log of /llvm-project/libc/utils/MPFRWrapper/MPFRUtils.cpp (Results 1 – 25 of 124)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: llvmorg-21-init
# 7f37b34d 28-Jan-2025 Shourya Goel <shouryagoel10000@gmail.com>

[libc][complex] Testing infra for MPC (#121261)

This PR aims to add the groundwork to test the precision of libc complex
functions against MPC. I took `cargf` as a test to verify that the infra
wo

[libc][complex] Testing infra for MPC (#121261)

This PR aims to add the groundwork to test the precision of libc complex
functions against MPC. I took `cargf` as a test to verify that the infra
works fine.

show more ...


Revision tags: llvmorg-19.1.7, llvmorg-19.1.6
# 4eec286b 13-Dec-2024 lntue <lntue@google.com>

[libc] Add MPFR testing infra for float128. (#119499)


Revision tags: llvmorg-19.1.5, llvmorg-19.1.4
# f7bb1290 08-Nov-2024 wldfngrs <wldfngrs@gmail.com>

[libc][math][c23] Add tanpif16 function (#115183)

- Implementation of `tan` for 16-bit floating point inputs scaled by pi.
i.e,. `tanpif16()`
- Implementation of Tanpi in MPFRWrapper for MPFR vers

[libc][math][c23] Add tanpif16 function (#115183)

- Implementation of `tan` for 16-bit floating point inputs scaled by pi.
i.e,. `tanpif16()`
- Implementation of Tanpi in MPFRWrapper for MPFR versions < 4.2
- Exhaustive tests for `tanpif16()`

show more ...


# 296a9ba7 31-Oct-2024 lntue <lntue@google.com>

[libc] Fix memory leak in MPFRWrapper cospif with MPFR pre 4.2. (#114415)


# 7395ef54 29-Oct-2024 wldfngrs <wldfngrs@gmail.com>

[libc][math][c23] Add cospif16 function (#113001)

Implementation of `cos` for half precision floating point inputs scaled
by pi (i.e., `cospi`), correctly rounded for all rounding modes.

-------

[libc][math][c23] Add cospif16 function (#113001)

Implementation of `cos` for half precision floating point inputs scaled
by pi (i.e., `cospi`), correctly rounded for all rounding modes.

---------

Co-authored-by: OverMighty <its.overmighty@gmail.com>

show more ...


Revision tags: llvmorg-19.1.3
# 95c24cb9 16-Oct-2024 OverMighty <its.overmighty@gmail.com>

[libc][math][c23] Add exp10m1f16 C23 math function (#105706)

Part of #95250.


# ddc3f2dd 15-Oct-2024 wldfngrs <wldfngrs@gmail.com>

[libc] Add sinpif16 function (#110994)

Half-precision floating point (16-bit) implementation of the
trigonometric function Sin for inputs scaled by pi


Revision tags: llvmorg-19.1.2, llvmorg-19.1.1
# 127349fc 23-Sep-2024 OverMighty <its.overmighty@gmail.com>

[libc][math] Add floating-point cast independent of compiler runtime (#105152)

Fixes build and tests with compiler-rt on x86.


Revision tags: llvmorg-19.1.0, llvmorg-19.1.0-rc4, llvmorg-19.1.0-rc3
# 0395bf76 06-Aug-2024 aaryanshukla <53713108+aaryanshukla@users.noreply.github.com>

[libc][math][c23] Add ffma{,l,f128} and fdiv{,l,f128} C23 math functions #101089 (#101253)

- added all variations of ffma and fdiv
- will add all new headers into yaml for next patch
- only fsu

[libc][math][c23] Add ffma{,l,f128} and fdiv{,l,f128} C23 math functions #101089 (#101253)

- added all variations of ffma and fdiv
- will add all new headers into yaml for next patch
- only fsub is left then all basic operations for float is complete

---------

Co-authored-by: OverMighty <its.overmighty@gmail.com>

show more ...


Revision tags: llvmorg-19.1.0-rc2
# 30b5d4a7 31-Jul-2024 aaryanshukla <53713108+aaryanshukla@users.noreply.github.com>

[libc][math][c23] Add dfma{l,f128} and dsub{l,f128} C23 math functions (#101089)

Co-authored-by: OverMighty <its.overmighty@gmail.com>


Revision tags: llvmorg-19.1.0-rc1, llvmorg-20-init
# c1562374 21-Jul-2024 Job Henandez Lara <hj93@protonmail.com>

[libc][math][c23] Add entrypoints and tests for dsqrt{l,f128} (#99815)


# af0f58cf 21-Jul-2024 Job Henandez Lara <hj93@protonmail.com>

[libc][math][c23] Add entrypoints and tests for fsqrt{,l,f128} (#99669)


# 9fb049c8 18-Jul-2024 OverMighty <its.overmighty@gmail.com>

[libc][math][c23] Add {f,d}mul{l,f128} and f16mul{,f,l,f128} C23 math functions (#98972)

Part of #93566.

Fixes #94833.


# 5ff3ff33 12-Jul-2024 Petr Hosek <phosek@google.com>

[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace declaration (#98597)

This is a part of #97655.


# ce9035f5 12-Jul-2024 Mehdi Amini <joker.eph@gmail.com>

Revert "[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace declaration" (#98593)

Reverts llvm/llvm-project#98075

bots are broken


# 3f30effe 11-Jul-2024 Petr Hosek <phosek@google.com>

[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace declaration (#98075)

This is a part of #97655.


# c9ee6b19 08-Jul-2024 lntue <35648136+lntue@users.noreply.github.com>

[libc][math] Implement cbrtf function correctly rounded to all rounding modes. (#97936)

Fixes https://github.com/llvm/llvm-project/issues/92874

Algorithm: Let `x = (-1)^s * 2^e * (1 + m)`.
- Ste

[libc][math] Implement cbrtf function correctly rounded to all rounding modes. (#97936)

Fixes https://github.com/llvm/llvm-project/issues/92874

Algorithm: Let `x = (-1)^s * 2^e * (1 + m)`.
- Step 1: Range reduction: reduce the exponent with:
```
y = cbrt(x) = (-1)^s * 2^(floor(e/3)) * 2^((e % 3)/3) * (1 + m)^(1/3)
```
- Step 2: Use the first 4 bit fractional bits of `m` to look up for a
degree-7 polynomial approximation to:
```
(1 + m)^(1/3) ~ 1 + m * P(m).
```
- Step 3: Perform the multiplication:
```
2^((e % 3)/3) * (1 + m)^(1/3).
```
- Step 4: Check for exact cases to prevent rounding and clear
`FE_INEXACT` floating point exception.
- Step 5: Combine with the exponent and sign before converting down to
`float` and return.

show more ...


# f8834ed2 06-Jul-2024 Hendrik Hübner <117831077+HendrikHuebner@users.noreply.github.com>

[libc][C23][math] Implement cospif function correctly rounded for all rounding modes (#97464)

I also fixed a comment in sinpif.cpp in the first commit. Should this be
included in this PR?

All te

[libc][C23][math] Implement cospif function correctly rounded for all rounding modes (#97464)

I also fixed a comment in sinpif.cpp in the first commit. Should this be
included in this PR?

All tests were passed, including the exhaustive test.

CC: @lntue

show more ...


# 12a1e6dd 02-Jul-2024 OverMighty <its.overmighty@gmail.com>

[libc][math][c23] Add f16{add,sub}f C23 math functions (#96787)

Part of #93566.


# 6f60d2b8 02-Jul-2024 Job Henandez Lara <hj93@protonmail.com>

[libc] Add mpfr tests for fmul. (#97376)

Fixes https://github.com/llvm/llvm-project/issues/94834


# ea93c538 01-Jul-2024 Hendrik Hübner <117831077+HendrikHuebner@users.noreply.github.com>

[libc][math][c23] Implemented sinpif function correctly rounded for all rounding modes. (#97149)

This implements the sinpif function. An exhaustive test shows it's
correct for all rounding modes.

[libc][math][c23] Implemented sinpif function correctly rounded for all rounding modes. (#97149)

This implements the sinpif function. An exhaustive test shows it's
correct for all rounding modes.

Issue: #94895

show more ...


# 6c1c451b 30-Jun-2024 OverMighty <its.overmighty@gmail.com>

[libc][math][c23] Add f16sqrt{,l,f128} C23 math functions (#96642)

Part of #95250.


# 56ef6a2e 29-Jun-2024 OverMighty <its.overmighty@gmail.com>

[libc][math][c23] Add f16div{,l,f128} C23 math functions (#97054)

Part of #93566.


# e34dbb12 27-Jun-2024 OverMighty <its.overmighty@gmail.com>

[libc][math][c23] Add f16fma{,l,f128} C23 math function (#96711)

Part of #93566.


# ef05b032 25-Jun-2024 OverMighty <its.overmighty@gmail.com>

[libc][math][c23] Add MPFR exhaustive test for fmodf16 (#94656)


12345