diff options
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/StdLib.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Kernel/StdLib.h b/Kernel/StdLib.h index c00447b8b1..d11ab36ea4 100644 --- a/Kernel/StdLib.h +++ b/Kernel/StdLib.h @@ -77,28 +77,28 @@ const void* memmem(const void* haystack, size_t, const void* needle, size_t); template<typename T> [[nodiscard]] inline bool copy_from_user(T* dest, const T* src) { - static_assert(is_trivially_copyable<T>()); + static_assert(IsTriviallyCopyable<T>); return copy_from_user(dest, src, sizeof(T)); } template<typename T> [[nodiscard]] inline bool copy_to_user(T* dest, const T* src) { - static_assert(is_trivially_copyable<T>()); + static_assert(IsTriviallyCopyable<T>); return copy_to_user(dest, src, sizeof(T)); } template<typename T> [[nodiscard]] inline bool copy_from_user(T* dest, Userspace<const T*> src) { - static_assert(is_trivially_copyable<T>()); + static_assert(IsTriviallyCopyable<T>); return copy_from_user(dest, src.unsafe_userspace_ptr(), sizeof(T)); } template<typename T> [[nodiscard]] inline bool copy_from_user(T* dest, Userspace<T*> src) { - static_assert(is_trivially_copyable<T>()); + static_assert(IsTriviallyCopyable<T>); return copy_from_user(dest, src.unsafe_userspace_ptr(), sizeof(T)); } @@ -125,28 +125,28 @@ DEPRECATE_COPY_FROM_USER_TYPE(timeval, copy_time_from_user) template<typename T> [[nodiscard]] inline bool copy_to_user(Userspace<T*> dest, const T* src) { - static_assert(is_trivially_copyable<T>()); + static_assert(IsTriviallyCopyable<T>); return copy_to_user(dest.unsafe_userspace_ptr(), src, sizeof(T)); } template<typename T> [[nodiscard]] inline bool copy_to_user(Userspace<T*> dest, const void* src, size_t size) { - static_assert(is_trivially_copyable<T>()); + static_assert(IsTriviallyCopyable<T>); return copy_to_user(dest.unsafe_userspace_ptr(), src, size); } template<typename T> [[nodiscard]] inline bool copy_from_user(void* dest, Userspace<const T*> src, size_t size) { - static_assert(is_trivially_copyable<T>()); + static_assert(IsTriviallyCopyable<T>); return copy_from_user(dest, src.unsafe_userspace_ptr(), size); } template<typename T> [[nodiscard]] inline bool copy_n_from_user(T* dest, const T* src, size_t count) { - static_assert(is_trivially_copyable<T>()); + static_assert(IsTriviallyCopyable<T>); Checked size = sizeof(T); size *= count; if (size.has_overflow()) @@ -157,7 +157,7 @@ template<typename T> template<typename T> [[nodiscard]] inline bool copy_n_to_user(T* dest, const T* src, size_t count) { - static_assert(is_trivially_copyable<T>()); + static_assert(IsTriviallyCopyable<T>); Checked size = sizeof(T); size *= count; if (size.has_overflow()) @@ -168,7 +168,7 @@ template<typename T> template<typename T> [[nodiscard]] inline bool copy_n_from_user(T* dest, Userspace<const T*> src, size_t count) { - static_assert(is_trivially_copyable<T>()); + static_assert(IsTriviallyCopyable<T>); Checked size = sizeof(T); size *= count; if (size.has_overflow()) @@ -179,7 +179,7 @@ template<typename T> template<typename T> [[nodiscard]] inline bool copy_n_to_user(Userspace<T*> dest, const T* src, size_t count) { - static_assert(is_trivially_copyable<T>()); + static_assert(IsTriviallyCopyable<T>); Checked size = sizeof(T); size *= count; if (size.has_overflow()) |