arch/x86/include/asm/simd.h

Source file repositories/reference/linux-study-clean/arch/x86/include/asm/simd.h

File Facts

System
Linux kernel
Corpus path
arch/x86/include/asm/simd.h
Extension
.h
Size
417 bytes
Lines
19
Domain
Architecture Layer
Bucket
arch/x86
Inferred role
Architecture Layer: implementation source
Status
source implementation candidate

Why This File Exists

CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef _ASM_SIMD_H
#define _ASM_SIMD_H

#include <asm/fpu/api.h>
#include <linux/compiler_attributes.h>
#include <linux/types.h>

/*
 * may_use_simd - whether it is allowable at this time to issue SIMD
 *                instructions or access the SIMD register file
 */
static __must_check inline bool may_use_simd(void)
{
	return irq_fpu_usable();
}

#endif	/* _ASM_SIMD_H */

Annotation

Implementation Notes