mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-26 02:14:22 +00:00
Prevent optimisation of floating-point status register value in FloatVectorOperations::setFpStatusRegister()
This commit is contained in:
parent
8d72e7fccc
commit
a87dd82ca2
1 changed files with 1 additions and 1 deletions
|
|
@ -1051,7 +1051,7 @@ intptr_t JUCE_CALLTYPE FloatVectorOperations::getFpStatusRegister() noexcept
|
|||
void JUCE_CALLTYPE FloatVectorOperations::setFpStatusRegister (intptr_t fpsr) noexcept
|
||||
{
|
||||
#if JUCE_INTEL && JUCE_USE_SSE_INTRINSICS
|
||||
auto fpsr_w = static_cast<uint32_t> (fpsr);
|
||||
volatile auto fpsr_w = static_cast<uint32_t> (fpsr);
|
||||
_mm_setcsr (fpsr_w);
|
||||
#elif defined (__arm64__) || defined (__aarch64__) || JUCE_USE_ARM_NEON
|
||||
#if defined (__arm64__) || defined (__aarch64__)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue