mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 23:12:56 +00:00
[UCRT] No __declspec(spectre(nomitigation)) for GCC/Clang
This commit is contained in:
parent
97e20ef342
commit
47e3f49e52
1 changed files with 4 additions and 1 deletions
|
@ -576,7 +576,10 @@ public:
|
||||||
|
|
||||||
// Instead of using an lfence mitigation, we can fill the table to a power of two,
|
// Instead of using an lfence mitigation, we can fill the table to a power of two,
|
||||||
// then bitwise-and all values used to index into the array.
|
// then bitwise-and all values used to index into the array.
|
||||||
__declspec(spectre(nomitigation)) T const& operator[](size_t const index) const
|
#if defined(_MSC_VER) && !defined(__clang__)
|
||||||
|
__declspec(spectre(nomitigation))
|
||||||
|
#endif
|
||||||
|
T const& operator[](size_t const index) const
|
||||||
{
|
{
|
||||||
return m_array[index & mask];
|
return m_array[index & mask];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue