3
0
mirror of https://github.com/Qortal/Brooklyn.git synced 2025-02-07 14:54:17 +00:00
Scare Crowe 442d22459d T3Q being reported to gay IRS cuz he is gay
Update / Redo the entire stack to juice up like no other was juiced before.
2021-10-22 13:54:53 +05:00

22 lines
456 B
C

#ifndef _COMPAT_ASM_SIMD_H
#define _COMPAT_ASM_SIMD_H
#if defined(CONFIG_X86_64)
#include <asm/fpu/api.h>
#endif
static __must_check inline bool may_use_simd(void)
{
#if defined(CONFIG_X86_64)
return irq_fpu_usable();
#elif defined(CONFIG_ARM64) && defined(CONFIG_KERNEL_MODE_NEON)
return true;
#elif defined(CONFIG_ARM) && defined(CONFIG_KERNEL_MODE_NEON)
return !in_nmi() && !in_irq() && !in_serving_softirq();
#else
return false;
#endif
}
#endif