We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3af276e commit a6d41f6Copy full SHA for a6d41f6
thrust/detail/alignment.h
@@ -208,11 +208,13 @@ struct aligned_type;
208
/// \p aligned_reinterpret_cast is responsible for ensuring that the alignment
209
/// requirements are actually satisified.
210
template <typename T, typename U>
211
+__host__ __device__
212
T aligned_reinterpret_cast(U u)
213
{
214
return reinterpret_cast<T>(reinterpret_cast<void*>(u));
215
}
216
217
218
inline std::size_t aligned_storage_size(std::size_t n, std::size_t align)
219
220
return ((n + align - 1) / align) * align;
0 commit comments