diff options
| author | Jon Chesterfield <jonathanchesterfield@gmail.com> | 2025-03-18 21:31:49 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-18 21:31:49 +0000 |
| commit | deb0f3c09b77cebe01976539e2d5f07964e2dc2a (patch) | |
| tree | c617dde8803329b5f77bd9de0802eb44077c115f /offload/include/Shared | |
| parent | 70bf5e514b21b34b01fb572428f8fbdf267d5c3b (diff) | |
[openmp][nfc] Use builtin align in the devicertl (#131918)
Noticed while extracting the smartstack as a test case
Diffstat (limited to 'offload/include/Shared')
| -rw-r--r-- | offload/include/Shared/Utils.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/offload/include/Shared/Utils.h b/offload/include/Shared/Utils.h index 523e6bc505b8..fa0212e2c217 100644 --- a/offload/include/Shared/Utils.h +++ b/offload/include/Shared/Utils.h @@ -34,10 +34,6 @@ template <typename Ty1, typename Ty2> Ty1 *advancePtr(Ty1 *Ptr, Ty2 Offset) { template <typename Ty1, typename Ty2> inline Ty1 alignPtr(Ty1 V, Ty2 Align) { return reinterpret_cast<Ty1>(((uintptr_t(V) + Align - 1) / Align) * Align); } -/// Return \p V aligned "downwards" according to \p Align. -template <typename Ty1, typename Ty2> inline Ty1 alignDown(Ty1 V, Ty2 Align) { - return V - V % Align; -} /// Round up \p V to a \p Boundary. template <typename Ty> inline Ty roundUp(Ty V, Ty Boundary) { |
