[libc] add strtoll function and backend
authorMichael Jones <michaelrj@google.com>
Thu, 5 Aug 2021 21:06:08 +0000 (21:06 +0000)
committerMichael Jones <michaelrj@google.com>
Wed, 11 Aug 2021 23:37:23 +0000 (23:37 +0000)
commitb062d639bb3a315f2b5f410e99b9c3ea10c530cc
tree9b5d8f244edf34f168880bceb0db8efd3cd3ab4c
parent3a2ff982d78fe20cc34454f5b28a95eecac9c142
[libc] add strtoll function and backend

This change adds the stroll function, but most of the implementation is
in the new file str_conv_utils.h since many of the other integer
conversion functions are implemented through what are effectively calls
to strtoll.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D107792
libc/config/linux/x86_64/entrypoints.txt
libc/spec/spec.td
libc/spec/stdc.td
libc/src/__support/CMakeLists.txt
libc/src/__support/str_conv_utils.h [new file with mode: 0644]
libc/src/stdlib/CMakeLists.txt
libc/src/stdlib/strtoll.cpp [new file with mode: 0644]
libc/src/stdlib/strtoll.h [new file with mode: 0644]
libc/test/src/stdlib/CMakeLists.txt
libc/test/src/stdlib/strtoll_test.cpp [new file with mode: 0644]