summaryrefslogtreecommitdiff
path: root/libc/src/math/amdgpu/fmax.cpp
AgeCommit message (Collapse)Author
2024-07-12[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace declaration (#98597)Petr Hosek
This is a part of #97655.
2024-07-12Revert "[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace ↵Mehdi Amini
declaration" (#98593) Reverts llvm/llvm-project#98075 bots are broken
2024-07-11[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace declaration (#98075)Petr Hosek
This is a part of #97655.
2024-02-29[libc] Remove workaround for fmin / fmax after being fixed in LLVM (#83421)Joseph Huber
Summary: These hacks can be removed now that https://github.com/llvm/llvm-project/pull/83376 fixed the underlying problem.
2024-02-27[libc] Work around incorrect fmin/fmax results for +/-x (#83158)Joseph Huber
Summary: The IEEE 754 standard as of the 2019 revision states that for fmin -0.0 is always less than 0.0 and for fmax 0.0 is always greater than 0.0. These are currently not respected by the builtin value and thus cause the tests to fail. This patch works around it in the implementation for now by explicitly modifying the sign bit.
2024-02-27[libc] Clean up GPU math implementations (#83133)Joseph Huber
Summary: The math directory likes to do architecture specific implementations of these math functions. For the GPU case it was complicated by the fact that both NVPTX and AMDGPU had to go through the same code paths. Since reworking the GPU target this is no longer the case and we can simply use the same scheme. This patch moves all the old code into two separate directories. This likely results in a net increase in code, but it's easier to reason with.