| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[libc] Add dirent.h functions opendir, readdir, closedir and dirfd. Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D130459 | 3 年前 | |
[libc][NFC] Remove all Linux specific code to respective linux/ directories These were all the non OS agnostic implementations I could find in general directories. Currently none of these functions are actually enabled, but for when they do it makes sense that they be in linux/ specific directories. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D119164 | 4 年前 | |
[libc][NFC] Add explicit casts to ctype functions Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D106902 | 4 年前 | |
[libc] Add dirent.h functions opendir, readdir, closedir and dirfd. Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D130459 | 3 年前 | |
[libc] Make the errno macro resolve to the thread local variable directly. With modern architectures having a thread pointer and language supporting thread locals, there is no reason to use a function intermediary to access the thread local errno value. The entrypoint corresponding to errno has been replaced with an object library as there is no formal entrypoint for errno anymore. Reviewed By: jeffbailey, michaelrj Differential Revision: https://reviews.llvm.org/D120920 | 4 年前 | |
[libc] Make the errno macro resolve to the thread local variable directly. With modern architectures having a thread pointer and language supporting thread locals, there is no reason to use a function intermediary to access the thread local errno value. The entrypoint corresponding to errno has been replaced with an object library as there is no formal entrypoint for errno anymore. Reviewed By: jeffbailey, michaelrj Differential Revision: https://reviews.llvm.org/D120920 | 4 年前 | |
[libc][NFC] Make explicit uint16_t casts in fenv | 3 年前 | |
[libc] Add imaxabs Differential Revision: https://reviews.llvm.org/D129517 | 3 年前 | |
[libc] Use nearest_integer instructions to improve expm1f performance. Use nearest_integer instructions to improve expf performance. Performance tests with CORE-MATH's perf tool: Before the patch: $ ./perf.sh expm1f LIBC-location: /home/lnt/experiment/llvm/llvm-project/build/projects/libc/lib/libllvmlibc.a GNU libc version: 2.31 GNU libc release: stable CORE-MATH reciprocal throughput : 10.096 System LIBC reciprocal throughput : 44.036 LIBC reciprocal throughput : 11.575 $ ./perf.sh expm1f --latency LIBC-location: /home/lnt/experiment/llvm/llvm-project/build/projects/libc/lib/libllvmlibc.a GNU libc version: 2.31 GNU libc release: stable CORE-MATH latency : 42.239 System LIBC latency : 122.815 LIBC latency : 50.122 After the patch: $ ./perf.sh expm1f LIBC-location: /home/lnt/experiment/llvm/llvm-project/build/projects/libc/lib/libllvmlibc.a GNU libc version: 2.31 GNU libc release: stable CORE-MATH reciprocal throughput : 10.046 System LIBC reciprocal throughput : 43.899 LIBC reciprocal throughput : 9.179 $ ./perf.sh expm1f --latency LIBC-location: /home/lnt/experiment/llvm/llvm-project/build/projects/libc/lib/libllvmlibc.a GNU libc version: 2.31 GNU libc release: stable CORE-MATH latency : 42.078 System LIBC latency : 120.488 LIBC latency : 41.528 Reviewed By: zimmermann6 Differential Revision: https://reviews.llvm.org/D130502 | 3 年前 | |
[libc] Add implementations of pthread_equal and pthread_self. Reviewed By: michaelrj, lntue Differential Revision: https://reviews.llvm.org/D129729 | 3 年前 | |
[libc] Make the errno macro resolve to the thread local variable directly. With modern architectures having a thread pointer and language supporting thread locals, there is no reason to use a function intermediary to access the thread local errno value. The entrypoint corresponding to errno has been replaced with an object library as there is no formal entrypoint for errno anymore. Reviewed By: jeffbailey, michaelrj Differential Revision: https://reviews.llvm.org/D120920 | 4 年前 | |
[libc][nfc] move printf inf/nan to separate function The floating point functions all use the same inf and nan formatting. By separating this functionality out of the %a conversion I make it available for reuse by %f/e/g. Reviewed By: lntue, sivachandra Differential Revision: https://reviews.llvm.org/D129665 | 3 年前 | |
[libc] Don't call user comparator function for equal pointers The standard says two equal pointers must compare equal so there is no need to call the user comparator function in this case. Differential Revision: https://reviews.llvm.org/D130310 | 3 年前 | |
[libc] Fix missing static_cast | 3 年前 | |
[libc] Make the errno macro resolve to the thread local variable directly. With modern architectures having a thread pointer and language supporting thread locals, there is no reason to use a function intermediary to access the thread local errno value. The entrypoint corresponding to errno has been replaced with an object library as there is no formal entrypoint for errno anymore. Reviewed By: jeffbailey, michaelrj Differential Revision: https://reviews.llvm.org/D120920 | 4 年前 | |
[libc] Add implementations of pthread_equal and pthread_self. Reviewed By: michaelrj, lntue Differential Revision: https://reviews.llvm.org/D129729 | 3 年前 | |
[libc] Make the errno macro resolve to the thread local variable directly. With modern architectures having a thread pointer and language supporting thread locals, there is no reason to use a function intermediary to access the thread local errno value. The entrypoint corresponding to errno has been replaced with an object library as there is no formal entrypoint for errno anymore. Reviewed By: jeffbailey, michaelrj Differential Revision: https://reviews.llvm.org/D120920 | 4 年前 | |
[libc] Add implementation of POSIX lseek function. Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D121676 | 4 年前 | |
[libc] Add a .clang-tidy file for the toplevel libc directory. Generation of the .yaml has been removed to prevent lint from running with every ninja invocation. The new .clang-tidy file is copied to the libc build directory so that generated files also get checked. Reviewed By: michaelrj Differential Revision: https://reviews.llvm.org/D115405 | 4 年前 | |
[libc] Add dirent.h functions opendir, readdir, closedir and dirfd. Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D130459 | 3 年前 |