[libc] Add [l|ll]abs implementation.
authorCheng Wang <chennngwang@gmail.com>
Thu, 3 Dec 2020 12:17:24 +0000 (20:17 +0800)
committerCheng Wang <chennngwang@gmail.com>
Fri, 11 Dec 2020 01:25:20 +0000 (09:25 +0800)
commit1fd32dcb294e16781fcfcf1a468180d00cf1e3ca
tree4e430b88e6df710581974f17a84b7cd3f09eeaf3
parente52881a2870234f0dad6e338a0f084eddeaa9356
[libc] Add [l|ll]abs implementation.

Implement abs, labs and llabs with template.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D92626
16 files changed:
libc/config/linux/aarch64/entrypoints.txt
libc/config/linux/x86_64/entrypoints.txt
libc/spec/spec.td
libc/spec/stdc.td
libc/src/stdlib/CMakeLists.txt
libc/src/stdlib/abs.cpp [new file with mode: 0644]
libc/src/stdlib/abs.h [new file with mode: 0644]
libc/src/stdlib/abs_utils.h [new file with mode: 0644]
libc/src/stdlib/labs.cpp [new file with mode: 0644]
libc/src/stdlib/labs.h [new file with mode: 0644]
libc/src/stdlib/llabs.cpp [new file with mode: 0644]
libc/src/stdlib/llabs.h [new file with mode: 0644]
libc/test/src/stdlib/CMakeLists.txt
libc/test/src/stdlib/abs_test.cpp [new file with mode: 0644]
libc/test/src/stdlib/labs_test.cpp [new file with mode: 0644]
libc/test/src/stdlib/llabs_test.cpp [new file with mode: 0644]