[all-commits] [llvm/llvm-project] d52f0a: [libc] Add strtol, strtoul, and strtoull
michaelrj-google via All-commits
all-commits at lists.llvm.org
Tue Aug 17 14:05:50 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d52f0aeca5dbde61aadbcd20e1b8cfaf15a84a65
https://github.com/llvm/llvm-project/commit/d52f0aeca5dbde61aadbcd20e1b8cfaf15a84a65
Author: Michael Jones <michaelrj at google.com>
Date: 2021-08-17 (Tue, 17 Aug 2021)
Changed paths:
M libc/config/linux/x86_64/entrypoints.txt
M libc/spec/spec.td
M libc/spec/stdc.td
M libc/src/__support/CMakeLists.txt
M libc/src/__support/str_conv_utils.h
M libc/src/stdlib/CMakeLists.txt
A libc/src/stdlib/strtol.cpp
A libc/src/stdlib/strtol.h
M libc/src/stdlib/strtoll.cpp
A libc/src/stdlib/strtoul.cpp
A libc/src/stdlib/strtoul.h
A libc/src/stdlib/strtoull.cpp
A libc/src/stdlib/strtoull.h
M libc/test/src/stdlib/CMakeLists.txt
A libc/test/src/stdlib/strtol_test.cpp
M libc/test/src/stdlib/strtoll_test.cpp
A libc/test/src/stdlib/strtoul_test.cpp
A libc/test/src/stdlib/strtoull_test.cpp
Log Message:
-----------
[libc] Add strtol, strtoul, and strtoull
Updates the internal string conversion function so that it
uses the new Limits.h added in a previous commit for max and min values,
and has a templated type. This makes implementing the other strto*
functions very simple.
Reviewed By: sivachandra
Differential Revision: https://reviews.llvm.org/D107999
More information about the All-commits
mailing list