mirror of
https://github.com/mikeoliphant/neural-amp-modeler-lv2.git
synced 2026-05-09 20:29:12 +02:00
Make sure __has_builtin is defined
This commit is contained in:
Vendored
+5
@@ -3,6 +3,9 @@
|
|||||||
#ifndef ARCHITECTURE_HPP
|
#ifndef ARCHITECTURE_HPP
|
||||||
#define ARCHITECTURE_HPP
|
#define ARCHITECTURE_HPP
|
||||||
|
|
||||||
|
#include <cfenv>
|
||||||
|
#include <fenv.h>
|
||||||
|
|
||||||
// check cpu architecture
|
// check cpu architecture
|
||||||
|
|
||||||
#if /* x86_64 */ \
|
#if /* x86_64 */ \
|
||||||
@@ -92,9 +95,11 @@ inline void disable_denormals() noexcept {
|
|||||||
_mm_setcsr(_mm_getcsr() | 0x8040);
|
_mm_setcsr(_mm_getcsr() | 0x8040);
|
||||||
#endif
|
#endif
|
||||||
#elif defined(ARCH_ARM)
|
#elif defined(ARCH_ARM)
|
||||||
|
#if defined __has_builtin
|
||||||
#if __has_builtin(__builtin_arm_set_fpscr) && __has_builtin(__builtin_arm_get_fpscr)
|
#if __has_builtin(__builtin_arm_set_fpscr) && __has_builtin(__builtin_arm_get_fpscr)
|
||||||
__builtin_arm_set_fpscr(__builtin_arm_get_fpscr() | (1 << 24));
|
__builtin_arm_set_fpscr(__builtin_arm_get_fpscr() | (1 << 24));
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user