Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eac7438c78 |
No files matched your search
@@ -50,7 +50,7 @@ jobs:
|
||||
persist-credentials: false
|
||||
|
||||
- name: "Run analysis"
|
||||
uses: ossf/scorecard-action@fa7117db83c52d787ae5a89f350999701505d78e # v2.5.0
|
||||
uses: ossf/scorecard-action@23f22cd43608bae7a1f1fa2603d7314dee9538a5 # v2.6.0
|
||||
with:
|
||||
results_file: results.sarif
|
||||
results_format: sarif
|
||||
|
||||
@@ -1510,19 +1510,7 @@ class serializer
|
||||
{
|
||||
flush();
|
||||
}
|
||||
#if defined(__GNUC__) && !defined(__clang__)
|
||||
std::size_t copy_length = length;
|
||||
// GCC knows from the test above that the length is below the size of
|
||||
// the write buffer, and with that bound it may expand the memcpy into
|
||||
// "rep movsq" (seen with -march=x86-64-v3 and -mtune=generic) instead
|
||||
// of calling memcpy. For the short runs written here its start-up cost
|
||||
// is far above that of the call (dump() with ensure_ascii 80 % slower
|
||||
// on Sapphire Rapids), so hide the bound from the optimizer.
|
||||
__asm__("" : "+r"(copy_length));
|
||||
#else
|
||||
const std::size_t copy_length = length;
|
||||
#endif
|
||||
std::memcpy(write_buffer.data() + write_buffer_pos, s, copy_length);
|
||||
std::memcpy(write_buffer.data() + write_buffer_pos, s, length);
|
||||
write_buffer_pos += length;
|
||||
}
|
||||
|
||||
|
||||
Generated
+1
-13
@@ -39101,19 +39101,7 @@ class serializer
|
||||
{
|
||||
flush();
|
||||
}
|
||||
#if defined(__GNUC__) && !defined(__clang__)
|
||||
std::size_t copy_length = length;
|
||||
// GCC knows from the test above that the length is below the size of
|
||||
// the write buffer, and with that bound it may expand the memcpy into
|
||||
// "rep movsq" (seen with -march=x86-64-v3 and -mtune=generic) instead
|
||||
// of calling memcpy. For the short runs written here its start-up cost
|
||||
// is far above that of the call (dump() with ensure_ascii 80 % slower
|
||||
// on Sapphire Rapids), so hide the bound from the optimizer.
|
||||
__asm__("" : "+r"(copy_length));
|
||||
#else
|
||||
const std::size_t copy_length = length;
|
||||
#endif
|
||||
std::memcpy(write_buffer.data() + write_buffer_pos, s, copy_length);
|
||||
std::memcpy(write_buffer.data() + write_buffer_pos, s, length);
|
||||
write_buffer_pos += length;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user