0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-29 12:18:54 +02:00

ircd::buffer: Add ifdef for clang; mark todo for gcc.

This commit is contained in:
Jason Volk 2020-07-08 17:21:01 -07:00
parent ce551e6bd4
commit e730c1a0bb

View file

@ -129,10 +129,18 @@ ircd::buffer::stream_aligned(const mutable_buffer &dst,
block_type block[file_lines];
for(size_t j(0); j < file_lines; ++j)
block[j] = __builtin_nontemporal_load(in + i + j);
#if defined(__clang__)
block[j] = __builtin_nontemporal_load(in + i + j);
#else
block[j] = *(in + i + j); //TODO: XXX
#endif
for(size_t j(0); j < file_lines; ++j)
__builtin_nontemporal_store(block[j], out + i + j);
#if defined(__clang__)
__builtin_nontemporal_store(block[j], out + i + j);
#else
*(out + i + j) = block[j]; //TODO: XXX
#endif
}
if constexpr(has_store)