mirror of
https://github.com/matrix-construct/construct
synced 2024-11-17 07:20:55 +01:00
ircd::buffer: Add ifdef for clang; mark todo for gcc.
This commit is contained in:
parent
ce551e6bd4
commit
e730c1a0bb
1 changed files with 10 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue