Uzair Nawaz
56a4f8d8c1
[libc] Wchar Stringconverter ( #146388 )
...
Implemented a string converter class to encapsulate the logic of
converting between utf8 <-> utf32
2025-07-14 15:45:46 -07:00
Uzair Nawaz
711132dfa4
[libc] Implement widechar to integer public functions ( #148683 )
...
Implement public wchar -> integer public functions using templated
internal wcs_to_integer function
2025-07-14 13:33:12 -07:00
lntue
f4630baaa2
Revert "[libc][math] Refactor exp implementation to header-only in src/__support/math folder." ( #148668 )
...
Reverts llvm/llvm-project#148091
Full build bots are failing.
2025-07-14 12:46:26 -04:00
Muhammad Bassiouni
a76dfde936
[libc][math] Refactor exp implementation to header-only in src/__support/math folder. ( #148091 )
...
Part of #147386
in preparation for:
https://discourse.llvm.org/t/rfc-make-clang-builtin-math-functions-constexpr-with-llvm-libc-to-support-c-23-constexpr-math-functions/86450
2025-07-14 12:21:27 -04:00
Muhammad Bassiouni
cfcda5d0ff
[libc][math] Refactor ldexpf implementation to header-only in src/__support/math folder ( #147906 )
...
Part of #147386
in preparation for:
https://discourse.llvm.org/t/rfc-make-clang-builtin-math-functions-constexpr-with-llvm-libc-to-support-c-23-constexpr-math-functions/86450
Please merge #147901 first
@lntue
2025-07-14 11:35:53 -04:00
Muhammad Bassiouni
074218dd10
[libc][math] Refactor ldexpf16 implementation to header-only in src/__support/math folder. ( #147901 )
...
Part of #147386
in preparation for:
https://discourse.llvm.org/t/rfc-make-clang-builtin-math-functions-constexpr-with-llvm-libc-to-support-c-23-constexpr-math-functions/86450
Please merge #147895 first
2025-07-14 11:00:01 -04:00
Muhammad Bassiouni
0ad2574de7
[libc][math] Refactor ldexpf128 implementation to header-only in src/__support/math folder. ( #147895 )
...
Part of #147386
in preparation for:
https://discourse.llvm.org/t/rfc-make-clang-builtin-math-functions-constexpr-with-llvm-libc-to-support-c-23-constexpr-math-functions/86450
2025-07-14 10:10:49 -04:00
Petr Hosek
bce3cbc74e
[libc] Baremetal version of clock ( #146417 )
...
This is analogous to the baremetal version of timespec_get using the
__llvm_libc_timespec_get_active embedding interface.
2025-07-12 10:26:51 -07:00
Muhammad Bassiouni
d06e9ce1dd
[libc][math] Refactor frexpf implementation to header-only in src/__support/math folder. ( #147893 )
...
Part of #147386
in preparation for:
https://discourse.llvm.org/t/rfc-make-clang-builtin-math-functions-constexpr-with-llvm-libc-to-support-c-23-constexpr-math-functions/86450
2025-07-12 11:08:58 -04:00
Muhammad Bassiouni
395643e60b
[libc][math] Refactor frexpf16 implementation to header-only in src/__support/math folder. ( #147889 )
...
Part of #147386
in preparation for:
https://discourse.llvm.org/t/rfc-make-clang-builtin-math-functions-constexpr-with-llvm-libc-to-support-c-23-constexpr-math-functions/86450
2025-07-12 00:48:01 -04:00
Connector Switch
c3abe3ff22
[libc][math][c23] implement C23 math function tanpif ( #147192 )
...
The smoke test and exhaustive test pass on x86_64 Linux.
Closes #94895 .
2025-07-12 12:39:33 +08:00
Muhammad Bassiouni
d02c85a29b
[libc] Fix frexpf128 build failure. ( #148332 )
2025-07-11 23:55:09 -04:00
Muhammad Bassiouni
af6500d14c
[libc][math] Refactor frexpf128 implementation to header-only in src/… ( #147822 )
...
Part of #147386
in preparation for:
https://discourse.llvm.org/t/rfc-make-clang-builtin-math-functions-constexpr-with-llvm-libc-to-support-c-23-constexpr-math-functions/86450
2025-07-11 22:59:09 -04:00
Muhammad Bassiouni
c25a5e08ba
[libc][math] Refactor expf16 implementation to header-only in src/__support/math folder. ( #147428 )
...
Part of #147386
in preparation for:
https://discourse.llvm.org/t/rfc-make-clang-builtin-math-functions-constexpr-with-llvm-libc-to-support-c-23-constexpr-math-functions/86450
2025-07-10 22:21:48 -04:00
Uzair Nawaz
88ba06d6fc
[libc] Addressed todo to make first_non_whitespace to return an idx instead of ptr ( #148004 )
...
Addressed todo to make first_non_whitespace to return an idx instead of
ptr
2025-07-10 13:55:14 -07:00
Uzair Nawaz
d93cc7aabf
[libc] WCS to integer internal function ( #147857 )
...
Duplicated str_to_integer.h and modified it to work with widechars.
A future patch will implement the public functions (wcstol, wcstoll,
etc) by calling this internal function.
2025-07-10 10:22:39 -07:00
sribee8
d5436b0b95
[libc] wcslcat implementation ( #146588 )
...
implemented wcslcat and tests.
---------
Co-authored-by: Sriya Pratipati <sriyap@google.com >
2025-07-09 23:54:03 +00:00
Bogdan Vetrenko
071e30220d
[libc][NFC] fix comment typo ("documentation") ( #147836 )
2025-07-09 15:44:10 -07:00
sribee8
f1acd69bfe
[libc] Added internal wctype functions ( #147798 )
...
Copy pasted the ctype equivalents
---------
Co-authored-by: Sriya Pratipati <sriyap@google.com >
2025-07-09 21:58:55 +00:00
sribee8
16f046281b
[libc] wcslcpy implementation ( #146571 )
...
Implemented wcslcpy and tests.
---------
Co-authored-by: Sriya Pratipati <sriyap@google.com >
2025-07-09 21:17:16 +00:00
OverMighty
44582c9f08
[libc] Fix DyadicFloat::generic_as() requiring LIBC_TYPES_HAS_FLOAT16 ( #147811 )
...
See https://lab.llvm.org/buildbot/#/builders/215/builds/710 .
2025-07-09 21:47:14 +02:00
Krishna Pandey
bb7cea0637
[libc][math][c++23] Add bfloat16 support in LLVM libc ( #144463 )
...
This PR enables support for BFloat16 type in LLVM libc along with
support for testing BFloat16 functions via MPFR.
---------
Signed-off-by: krishna2803 <kpandey81930@gmail.com >
Signed-off-by: Krishna Pandey <kpandey81930@gmail.com >
Co-authored-by: OverMighty <its.overmighty@gmail.com >
2025-07-09 21:26:29 +02:00
enh-google
ff365ce1d7
Reland "Fix wcpncpy() return value; add test." ( #146753 )
...
Reverts llvm/llvm-project#146752 , which was a revert of my accidental
push, so we can actually review and presubmit this time.
2025-07-09 15:25:49 -04:00
Michael Jones
77d95911a3
Revert "Fix wcpncpy() return value; add test." ( #146752 )
...
This reverts commit 988876cdd9 .
Was intended to be a PR
2025-07-02 11:08:21 -07:00
enh-google
988876cdd9
Fix wcpncpy() return value; add test.
2025-07-02 14:00:02 -04:00