[all-commits] [llvm/llvm-project] 584cc3: [libc++] Move std::abs into __math/abs.h (#139586)
Nikolas Klauser via All-commits
all-commits at lists.llvm.org
Thu Jun 19 01:37:39 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 584cc376870505821b5ff0b0e80be85ee563ff0c
https://github.com/llvm/llvm-project/commit/584cc376870505821b5ff0b0e80be85ee563ff0c
Author: Nikolas Klauser <nikolasklauser at berlin.de>
Date: 2025-06-19 (Thu, 19 Jun 2025)
Changed paths:
M libcxx/include/__math/abs.h
M libcxx/include/math.h
M libcxx/include/stdlib.h
M libcxx/test/std/numerics/c.math/abs.verify.cpp
Log Message:
-----------
[libc++] Move std::abs into __math/abs.h (#139586)
`template <class = int>` is also added to our implementations to avoid
an ambiguity between the libc's version and our version when both are
visible.
This avoids including `<stdlib.h>` in `<math.h>`.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list