1- #pragma once
1+ #pragma once
22
33namespace fast_io ::details
44{
@@ -84,12 +84,10 @@ inline constexpr ::std::byte *bytes_copy_n(::std::byte const *first, ::std::size
8484 else
8585 {
8686 if (n)
87- #if __has_cpp_attribute(likely)
8887 [[likely]]
89- #endif
9088 {
9189#if FAST_IO_HAS_BUILTIN(__builtin_memmove)
92- __builtin_memmove (dest, first, n);
90+ __builtin_memmove (dest, first, n);
9391#else
9492 ::std::memmove (dest, first, n);
9593#endif
@@ -116,12 +114,10 @@ inline constexpr ::std::byte *nonoverlapped_bytes_copy_n(::std::byte const *firs
116114 else
117115 {
118116 if (n)
119- #if __has_cpp_attribute(likely)
120117 [[likely]]
121- #endif
122118 {
123119#if FAST_IO_HAS_BUILTIN(__builtin_memcpy)
124- __builtin_memcpy (dest, first, n);
120+ __builtin_memcpy (dest, first, n);
125121#else
126122 ::std::memcpy (dest, first, n);
127123#endif
@@ -155,7 +151,7 @@ inline constexpr ::std::byte const *type_punning_from_bytes(::std::byte const *_
155151#endif
156152 {
157153#if FAST_IO_HAS_BUILTIN(__builtin_memcpy)
158- __builtin_memcpy (__builtin_addressof (t), first, n);
154+ __builtin_memcpy (__builtin_addressof (t), first, n);
159155#else
160156 ::std::memcpy (__builtin_addressof(t), first, n);
161157#endif
@@ -180,7 +176,7 @@ inline constexpr ::std::byte *type_punning_to_bytes_n(T const &__restrict first,
180176#endif
181177 {
182178#if FAST_IO_HAS_BUILTIN(__builtin_memcpy)
183- __builtin_memcpy (dest, __builtin_addressof (first), n);
179+ __builtin_memcpy (dest, __builtin_addressof (first), n);
184180#else
185181 ::std::memcpy (dest, __builtin_addressof(first), n);
186182#endif
@@ -208,7 +204,7 @@ inline constexpr ::std::byte *bytes_clear_n(::std::byte *data, ::std::size_t siz
208204 else
209205 {
210206#if FAST_IO_HAS_BUILTIN(__builtin_memset)
211- __builtin_memset (data, 0 , size);
207+ __builtin_memset (data, 0 , size);
212208#else
213209 ::std::memset (data, 0 , size);
214210#endif
@@ -233,7 +229,7 @@ inline constexpr ::std::byte *bytes_fill_n(::std::byte *data, ::std::size_t size
233229 else
234230 {
235231#if FAST_IO_HAS_BUILTIN(__builtin_memset)
236- __builtin_memset (data, static_cast <char unsigned >(val), size);
232+ __builtin_memset (data, static_cast <char unsigned >(val), size);
237233#else
238234 ::std::memset (data, static_cast <char unsigned >(val), size);
239235#endif
0 commit comments