| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[libc][NFC] Add stdint.h proxy header to fix dependency issue with <stdint.h> includes. (#150303) https://github.com/llvm/llvm-project/issues/149993 | 1 年前 | |
[libc][NFC] Add stdint.h proxy header to fix dependency issue with <stdint.h> includes. (#150303) https://github.com/llvm/llvm-project/issues/149993 | 1 年前 | |
[libc][math] Refactor dsqrtl implementation to header-only in src/__support/math folder. (#154868) Part of #147386 in preparation for: https://discourse.llvm.org/t/rfc-make-clang-builtin-math-functions-constexpr-with-llvm-libc-to-support-c-23-constexpr-math-functions/86450 | 10 个月前 | |
[libc][NFC] Add stdint.h proxy header to fix dependency issue with <stdint.h> includes. (#150303) https://github.com/llvm/llvm-project/issues/149993 | 1 年前 | |
[libc][NFC] Add stdint.h proxy header to fix dependency issue with <stdint.h> includes. (#150303) https://github.com/llvm/llvm-project/issues/149993 | 1 年前 | |
[libc][math][c++23] Add {canonicalize,iscanonical,fdim,copysign,issignaling}bf16 math functions (#155567) This PR adds the following basic math functions for BFloat16 type along with the tests: - canonicalizebf16 - iscanonicalbf16 - fdimbf16 - copysignbf16 - issignalingbf16 --------- Signed-off-by: Krishna Pandey <kpandey81930@gmail.com> | 11 个月前 | |
[libc][math] Do not use float16 basic operations in hypotf16. (#155177) Compiler runtimes for float16 basic operations might not be correctly rounded for all rounding modes. | 11 个月前 | |
| 2 年前 | ||
[libc] Some more MSVC compatibility in src/__support. (#158108) | 10 个月前 | |
[libc] Provide more fine-grained control of FMA instruction for ARM targets. (#130700) | 1 年前 | |
[libc] Some more MSVC compatibility in src/__support. (#158108) | 10 个月前 | |
[libc][math] Do not use float16 basic operations in hypotf16. (#155177) Compiler runtimes for float16 basic operations might not be correctly rounded for all rounding modes. | 11 个月前 | |
[libc] Fix frexpf128 build failure. (#148332) | 1 年前 | |
[libc] Fix for adding macro I (#111872) We have two (EDIT: 4) files in which we are using I. This PR replaces them with alternatives like i and IDX etc. | 1 年前 | |
[libc][NFC] Add stdint.h proxy header to fix dependency issue with <stdint.h> includes. (#150303) https://github.com/llvm/llvm-project/issues/149993 | 1 年前 | |
[libc][math] Refactor exp10 implementation to header-only in src/__support/math folder. (#148400) Part of #147386 in preparation for: https://discourse.llvm.org/t/rfc-make-clang-builtin-math-functions-constexpr-with-llvm-libc-to-support-c-23-constexpr-math-functions/86450 | 1 年前 | |
[libc] Fix buildbot failures (#156733) Signed-off-by: Krishna Pandey <kpandey81930@gmail.com> | 11 个月前 | |
[libc][math][c++23] Implement basic arithmetic operations for BFloat16 (#151228) This PR implements addition, subtraction, multiplication and division operations for BFloat16. --------- Signed-off-by: krishna2803 <kpandey81930@gmail.com> Signed-off-by: Krishna Pandey <kpandey81930@gmail.com> Co-authored-by: OverMighty <its.overmighty@gmail.com> | 1 年前 | |
[libc][math] Add Generic Comparison Operations for floating point types (#144983) The PR implements the following generic comparison operation functions for floating point types along with unittests: - fputil::equals - fputil::less_than - fputil::less_than_or_equals - fputil::greater_than - fputil::greater_than_or_equals --------- Signed-off-by: krishna2803 <kpandey81930@gmail.com> Signed-off-by: Krishna Pandey <kpandey81930@gmail.com> Co-authored-by: OverMighty <its.overmighty@gmail.com> | 1 年前 | |
[libc][math] Add float-only implementation for sinf / cosf. (#161680) Based on the double precision's sin/cos fast path algorithm: Step 1: Perform range reduction y = x mod pi/8 with target errors < 2^-54. This is because the worst case mod pi/8 for single precision is ~2^-31, so to have up to 1 ULP errors from the range reduction, the targeted errors should be 2^(-31 - 23) = 2^-54. Step 2: Polynomial approximation We use degree-5 and degree-4 polynomials to approximate sin and cos of the reduced angle respectively. Step 3: Combine the results using trig identities math \begin{align*} \sin(x) &= \sin(y) \cdot \cos(k \cdot \frac{\pi}{8}) + \cos(y) \cdot \sin(k \cdot \frac{\pi}{8}) \\ \cos(x) &= \cos(y) \cdot \cos(k \cdot \frac{\pi}{8}) - \sin(y) \cdot \sin(k \cdot \frac{\pi}{8}) \end{align*} Overall errors: <= 3 ULPs for default rounding modes (tested exhaustively). Current limitation: large range reduction requires FMA instructions for binary32. This restriction will be removed in the followup PR. --------- Co-authored-by: Petr Hosek <phosek@google.com> | 9 个月前 | |
[libc][math][c++23] Implement basic arithmetic operations for BFloat16 (#151228) This PR implements addition, subtraction, multiplication and division operations for BFloat16. --------- Signed-off-by: krishna2803 <kpandey81930@gmail.com> Signed-off-by: Krishna Pandey <kpandey81930@gmail.com> Co-authored-by: OverMighty <its.overmighty@gmail.com> | 1 年前 | |
[libc] Workaround for gcc complaining about implicit conversions with the ternary ?: operator. (#124820) Fixes https://github.com/llvm/llvm-project/issues/120427, https://github.com/llvm/llvm-project/issues/122745 This is caused by a -Wconversion false-positive bug in gcc: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101537 | 1 年前 | |
| 2 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
[libc] Fix constexpr FPUtils rounding_mode.h functions. (#152342) | 1 年前 | |
[libc][math] Add x86-64 sqrt specialization for 80-bit long double. (#139203) | 1 年前 | |
| 2 年前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 1 年前 | ||
| 1 年前 | ||
| 10 个月前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 2 年前 | ||
| 10 个月前 | ||
| 1 年前 | ||
| 10 个月前 | ||
| 11 个月前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 11 个月前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 9 个月前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 2 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 2 年前 |