History log of /llvm-project/libc/test/src/__support/integer_to_string_test.cpp (Results 1 – 19 of 19)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: llvmorg-18.1.8, llvmorg-18.1.7, llvmorg-18.1.6, llvmorg-18.1.5, llvmorg-18.1.4
# 09efe848 06-Apr-2024 Guillaume Chatelet <gchatelet@google.com>

[libc][NFC] Rename `UInt.h` to `big_int.h` and `UInt128.h` to `uint128.h` for consistency (#87808)


Revision tags: llvmorg-18.1.3, llvmorg-18.1.2
# bae47d48 12-Mar-2024 Nick Desaulniers <nickdesaulniers@users.noreply.github.com>

[libc] fix another build failure from using limits.h (#84827)

My GCC build is failing with issues similar why we added our own. Looks
like
we missed one spot. See also:

commit 72ce62941579 ("[libc]

[libc] fix another build failure from using limits.h (#84827)

My GCC build is failing with issues similar why we added our own. Looks
like
we missed one spot. See also:

commit 72ce62941579 ("[libc] Add C23 limits.h header. (#78887)")

show more ...


# 6a8e6c9a 08-Mar-2024 Guillaume Chatelet <gchatelet@google.com>

[libc][NFC] Move `BigInt` out of the `cpp` namespace (#84445)

As noted in
https://github.com/llvm/llvm-project/pull/84035#discussion_r1516817755
only files under the CPP folder should be in the `c

[libc][NFC] Move `BigInt` out of the `cpp` namespace (#84445)

As noted in
https://github.com/llvm/llvm-project/pull/84035#discussion_r1516817755
only files under the CPP folder should be in the `cpp` namespace.

show more ...


Revision tags: llvmorg-18.1.1, llvmorg-18.1.0, llvmorg-18.1.0-rc4, llvmorg-18.1.0-rc3
# a80a01fc 16-Feb-2024 Guillaume Chatelet <gchatelet@google.com>

[reland][libc][NFC] Use user defined literals to build 128 and 256 bit constants (#81998)

- #81835
- Fix for platforms where uint64_t is not available


# a1d4c693 15-Feb-2024 Guillaume Chatelet <gchatelet@google.com>

Revert "[reland][libc][NFC] Use user defined literals to build 128 and 256 bit constants" (#81882)

Reverts llvm/llvm-project#81835
This is breaking arm32 which does not support 64 bit types.


# 513e4dc1 15-Feb-2024 Guillaume Chatelet <gchatelet@google.com>

[reland][libc][NFC] Use user defined literals to build 128 and 256 bit constants (#81835)

This is a reland of #81746


# 78d401b0 14-Feb-2024 Guillaume Chatelet <gchatelet@google.com>

Revert "[libc][NFC] Use user defined literals to build 128 and 256 bit constants." (#81771)

Reverts llvm/llvm-project#81746


# 411554a3 14-Feb-2024 Guillaume Chatelet <gchatelet@google.com>

[libc][NFC] Use user defined literals to build 128 and 256 bit constants. (#81746)


Revision tags: llvmorg-18.1.0-rc2, llvmorg-18.1.0-rc1, llvmorg-19-init, llvmorg-17.0.6, llvmorg-17.0.5, llvmorg-17.0.4, llvmorg-17.0.3, llvmorg-17.0.2
# b6bc9d72 26-Sep-2023 Guillaume Chatelet <gchatelet@google.com>

[libc] Mass replace enclosing namespace (#67032)

This is step 4 of
https://discourse.llvm.org/t/rfc-customizable-namespace-to-allow-testing-the-libc-when-the-system-libc-is-also-llvms-libc/73079


Revision tags: llvmorg-17.0.1, llvmorg-17.0.0, llvmorg-17.0.0-rc4, llvmorg-17.0.0-rc3
# b555912e 08-Aug-2023 Guillaume Chatelet <gchatelet@google.com>

[libc] Better IntegerToString API

This patch is an alternative to D155902. It provides the following benefits:
- No buffer manual allocation and error handling for the general case
- More flexible

[libc] Better IntegerToString API

This patch is an alternative to D155902. It provides the following benefits:
- No buffer manual allocation and error handling for the general case
- More flexible API : width specifier, sign and prefix handling
- Simpler code

The more flexible API removes the need for manually tweaking the buffer afterwards, and so prevents relying on implementation details of IntegerToString.

Reviewed By: michaelrj, jhuber6

Differential Revision: https://reviews.llvm.org/D156981

show more ...


# 98ab87f4 08-Aug-2023 Guillaume Chatelet <gchatelet@google.com>

Revert "[libc] Better IntegerToString API"

This reverts commit 910cc05aae85a6b31e2a2ed87d3dd46db46fce04.


# 910cc05a 08-Aug-2023 Guillaume Chatelet <gchatelet@google.com>

[libc] Better IntegerToString API

This patch is an alternative to D155902. It provides the following benefits:
- No buffer manual allocation and error handling for the general case
- More flexible

[libc] Better IntegerToString API

This patch is an alternative to D155902. It provides the following benefits:
- No buffer manual allocation and error handling for the general case
- More flexible API : width specifier, sign and prefix handling
- Simpler code

The more flexible API removes the need for manually tweaking the buffer afterwards, and so prevents relying on implementation details of IntegerToString.

Reviewed By: michaelrj, jhuber6

Differential Revision: https://reviews.llvm.org/D156981

show more ...


Revision tags: llvmorg-17.0.0-rc2, llvmorg-17.0.0-rc1, llvmorg-18-init, llvmorg-16.0.6, llvmorg-16.0.5
# 625d6928 18-May-2023 Siva Chandra Reddy <sivachandra@google.com>

[libc] Extend IntegerToString to convert UInt* numbers to hex string.

This new functionality will help us avoid duplicated code in various
places in the testing infrastructure. Since the string repr

[libc] Extend IntegerToString to convert UInt* numbers to hex string.

This new functionality will help us avoid duplicated code in various
places in the testing infrastructure. Since the string representation
of the wide numbers is to be used by tests, to keep it simple, we
zero-pad the strings.

Reviewed By: lntue

Differential Revision: https://reviews.llvm.org/D150849

show more ...


Revision tags: llvmorg-16.0.4, llvmorg-16.0.3, llvmorg-16.0.2, llvmorg-16.0.1, llvmorg-16.0.0, llvmorg-16.0.0-rc4, llvmorg-16.0.0-rc3, llvmorg-16.0.0-rc2
# af1315c2 06-Feb-2023 Siva Chandra Reddy <sivachandra@google.com>

[libc][NFC] Move UnitTest and IntegrationTest to the 'test' directory.

This part of the effort to make all test related pieces into the `test`
directory. This helps is excluding test related pieces

[libc][NFC] Move UnitTest and IntegrationTest to the 'test' directory.

This part of the effort to make all test related pieces into the `test`
directory. This helps is excluding test related pieces in a straight
forward manner if LLVM_INCLUDE_TESTS is OFF. Future patches will also move
the MPFR wrapper and testutils into the 'test' directory.

show more ...


Revision tags: llvmorg-16.0.0-rc1, llvmorg-17-init, llvmorg-15.0.7, llvmorg-15.0.6, llvmorg-15.0.5, llvmorg-15.0.4, llvmorg-15.0.3, working, llvmorg-15.0.2, llvmorg-15.0.1, llvmorg-15.0.0, llvmorg-15.0.0-rc3
# aa59c981 22-Aug-2022 Guillaume Chatelet <gchatelet@google.com>

[libc][NFC] Use STL case for string_view


# eb0715e3 12-Aug-2022 Siva Chandra Reddy <sivachandra@google.com>

[libc][NFC] Make IntegerToString simpler to use at call-sites.

Reviewed By: michaelrj

Differential Revision: https://reviews.llvm.org/D131943


Revision tags: llvmorg-15.0.0-rc2
# 23ace05e 04-Aug-2022 Michael Jones <michaelrj@google.com>

[libc] add int to string for extended bases

The default IntegerToString class only supports base 10, this patch adds
a version which supports any base between 2 and 36 inclusive. This will
be used i

[libc] add int to string for extended bases

The default IntegerToString class only supports base 10, this patch adds
a version which supports any base between 2 and 36 inclusive. This will
be used in an upcoming patch.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D131301

show more ...


# 5dd85534 05-Aug-2022 Michael Jones <michaelrj@google.com>

[libc] Support StringView equality tests

Previously, the integer_to_string tests used EXPECT_TRUE(.equals)
which doesn't have useful error messages. Now they properly check
equality with the EXPECT_

[libc] Support StringView equality tests

Previously, the integer_to_string tests used EXPECT_TRUE(.equals)
which doesn't have useful error messages. Now they properly check
equality with the EXPECT_EQ macro, which allows for comparing the
strings more naturally.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D131300

show more ...


Revision tags: llvmorg-15.0.0-rc1, llvmorg-16-init
# 7c666c14 20-Jul-2022 Siva Chandra Reddy <sivachandra@google.com>

[libc] Add a convenience class and function for integer to string conversion.

Printf's integer converter has been modified to use the new converter. In
future, it will be used to implement other par

[libc] Add a convenience class and function for integer to string conversion.

Printf's integer converter has been modified to use the new converter. In
future, it will be used to implement other parts of the libc.

Reviewed By: michaelrj

Differential Revision: https://reviews.llvm.org/D130227

show more ...