Skip to content

Commit fd4a740

Browse files
authored
[libc][stdlib] Move LIBC_INLINE after template and before constexpr (#95037)
1 parent 076a50a commit fd4a740

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libc/src/stdlib/block.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ LIBC_INLINE constexpr size_t align_down(size_t value, size_t alignment) {
3939
}
4040

4141
/// Returns the value rounded down to the nearest multiple of alignment.
42-
LIBC_INLINE template <typename T>
43-
constexpr T *align_down(T *value, size_t alignment) {
42+
template <typename T>
43+
LIBC_INLINE constexpr T *align_down(T *value, size_t alignment) {
4444
return reinterpret_cast<T *>(
4545
align_down(reinterpret_cast<size_t>(value), alignment));
4646
}

0 commit comments

Comments
 (0)