simd.h 287 B

123456789101112
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #include <asm/fpu/api.h>
  3. /*
  4. * may_use_simd - whether it is allowable at this time to issue SIMD
  5. * instructions or access the SIMD register file
  6. */
  7. static __must_check inline bool may_use_simd(void)
  8. {
  9. return irq_fpu_usable();
  10. }