MMichael Jones[libc] fix strtofloatingpoint on rare edge case
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[libc] Add Uint128 type as a fallback when __uint128_t is not available. Also, the unused specializations of __int128_t have been removed. Differential Revision: https://reviews.llvm.org/D128304 | 3 年前 | |
[libc] Make div test names unique In Fuchsia, all tests in a directory, ie stdlib, are linked into one executable, this causes problems for multiple definitions of the vtables of the div tests because their class has the same name. This patch just trivially changes their name to be unique between all div tests. Differential revision: https://reviews.llvm.org/D129248 | 3 年前 | |
[libc] Add exit and atexit Often atexit is implemented using __cxa_atexit. I have not implemented __cxa_atexit here because it potentially requires more discussion. It is unique for llvm-libc (I think) that it is an exported symbol that wouldn’t be defined in any spec file because it doesn’t have a header. Implementing it will be trivial given what is here already, but I figured it would be more contentious so it can be implemented later. Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D119512 | 4 年前 | |
[libc][NFC] Add a death test API adaptation macro Fuchsia's zxtest has a slightly different death test definition, and this macro makes our death test API work on Fuchsia. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D95648 | 5 年前 | |
[libc][NFC] add "LlvmLibc" as a prefix to all test names Summary: Having a consistent prefix makes selecting all of the llvm libc tests easier on any platform that is also using the gtest framework. This also modifies the TEST and TEST_F macros to enforce this change moving forward. Reviewers: sivachandra Subscribers: | 5 年前 | |
[libc] Fix exit not calling new handlers registered from a call to atexit in atexit handler | 4 年前 | |
[libc] apply formatting to tests Apply the formatting rules that were applied to the libc/src directory to the libc/test directory, as well as the files in libc/utils that are included by the tests. This does not include automated enforcement. Reviewed By: sivachandra, lntue Differential Revision: https://reviews.llvm.org/D116127 | 4 年前 | |
[libc] add atoi, atol, and atoll This is based on the work done to add strtoll and the other strto functions. The atoi functions also were added to stdc and entrypoints.txt. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D108330 | 4 年前 | |
[libc] Enable string to integer conversion functions in the default build Adds atoi, atol, atoll, strtol, strtoll, strtoul, and strtoull to the list of entrypoints for Windows and aarch64 linux, as well as moving them out of the LLVM_LIBC_FULL_BUILD condition for x86_64 linux. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D108477 | 4 年前 | |
[libc] Enable string to integer conversion functions in the default build Adds atoi, atol, atoll, strtol, strtoll, strtoul, and strtoull to the list of entrypoints for Windows and aarch64 linux, as well as moving them out of the LLVM_LIBC_FULL_BUILD condition for x86_64 linux. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D108477 | 4 年前 | |
[libc] apply formatting to tests Apply the formatting rules that were applied to the libc/src directory to the libc/test directory, as well as the files in libc/utils that are included by the tests. This does not include automated enforcement. Reviewed By: sivachandra, lntue Differential Revision: https://reviews.llvm.org/D116127 | 4 年前 | |
[libc] Add implementations of div, ldiv, lldiv and imaxdiv. Reviewed By: michaelrj Differential Revision: https://reviews.llvm.org/D109952 | 4 年前 | |
[libc][NFC] add "LlvmLibc" as a prefix to all test names Summary: Having a consistent prefix makes selecting all of the llvm libc tests easier on any platform that is also using the gtest framework. This also modifies the TEST and TEST_F macros to enforce this change moving forward. Reviewers: sivachandra Subscribers: | 5 年前 | |
[libc] Add implementations of div, ldiv, lldiv and imaxdiv. Reviewed By: michaelrj Differential Revision: https://reviews.llvm.org/D109952 | 4 年前 | |
[libc][NFC] add "LlvmLibc" as a prefix to all test names Summary: Having a consistent prefix makes selecting all of the llvm libc tests easier on any platform that is also using the gtest framework. This also modifies the TEST and TEST_F macros to enforce this change moving forward. Reviewers: sivachandra Subscribers: | 5 年前 | |
[libc] Add implementations of div, ldiv, lldiv and imaxdiv. Reviewed By: michaelrj Differential Revision: https://reviews.llvm.org/D109952 | 4 年前 | |
[libc] apply formatting to tests Apply the formatting rules that were applied to the libc/src directory to the libc/test directory, as well as the files in libc/utils that are included by the tests. This does not include automated enforcement. Reviewed By: sivachandra, lntue Differential Revision: https://reviews.llvm.org/D116127 | 4 年前 | |
[libc] fix strtofloatingpoint on rare edge case Currently, there are two string parsers that can be used in a call to strtofloatingpoint. There is the main parser used by Clinger's fast path and Eisel-Lemire, and the backup parser used by Simple Decimal Conversion. There was a bug in the backup parser where if the number had more than 800 digits (the size of the SDC buffer) before the decimal point, it would just ignore the digits after the 800th and not count them into the exponent. This patch fixes that issue and adds regression tests. Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D130032 | 3 年前 | |
[libc] Specify rounding mode for strto[f|d] tests The specified rounding mode will be used and restored to what it was before the test ran. Additionally, it moves ForceRoundingMode and RoundingMode out of MPFRUtils to be used in more places. Differential Revision: https://reviews.llvm.org/D129685 | 3 年前 | |
[libc] fix strtol returning the wrong length Previously, strtol/ll/ul/ull would return a pointer to the end of its parsing, regardless of if it detected a number. Now it will return a length of 0 when it doesn't find a number. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D112176 | 4 年前 | |
[libc] Add Uint128 type as a fallback when __uint128_t is not available. Also, the unused specializations of __int128_t have been removed. Differential Revision: https://reviews.llvm.org/D128304 | 3 年前 | |
[libc] fix strtol returning the wrong length Previously, strtol/ll/ul/ull would return a pointer to the end of its parsing, regardless of if it detected a number. Now it will return a length of 0 when it doesn't find a number. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D112176 | 4 年前 | |
[libc] fix strtol returning the wrong length Previously, strtol/ll/ul/ull would return a pointer to the end of its parsing, regardless of if it detected a number. Now it will return a length of 0 when it doesn't find a number. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D112176 | 4 年前 | |
[libc] fix strtol returning the wrong length Previously, strtol/ll/ul/ull would return a pointer to the end of its parsing, regardless of if it detected a number. Now it will return a length of 0 when it doesn't find a number. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D112176 | 4 年前 |