[libc-commits] [libc] fd4a740 - [libc][stdlib] Move LIBC_INLINE after template and before constexpr (#95037)
via libc-commits
libc-commits at lists.llvm.org
Mon Jun 10 15:01:04 PDT 2024
Author: PiJoules
Date: 2024-06-10T15:01:01-07:00
New Revision: fd4a7401280b68ce3d5751fb1d6a13639588e9d4
URL: https://github.com/llvm/llvm-project/commit/fd4a7401280b68ce3d5751fb1d6a13639588e9d4
DIFF: https://github.com/llvm/llvm-project/commit/fd4a7401280b68ce3d5751fb1d6a13639588e9d4.diff
LOG: [libc][stdlib] Move LIBC_INLINE after template and before constexpr (#95037)
Added:
Modified:
libc/src/stdlib/block.h
Removed:
################################################################################
diff --git a/libc/src/stdlib/block.h b/libc/src/stdlib/block.h
index ce26add082d0a..afb18c1ef738f 100644
--- a/libc/src/stdlib/block.h
+++ b/libc/src/stdlib/block.h
@@ -39,8 +39,8 @@ LIBC_INLINE constexpr size_t align_down(size_t value, size_t alignment) {
}
/// Returns the value rounded down to the nearest multiple of alignment.
-LIBC_INLINE template <typename T>
-constexpr T *align_down(T *value, size_t alignment) {
+template <typename T>
+LIBC_INLINE constexpr T *align_down(T *value, size_t alignment) {
return reinterpret_cast<T *>(
align_down(reinterpret_cast<size_t>(value), alignment));
}
More information about the libc-commits
mailing list