include/asm-generic/simd.h

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

File Facts

System
Linux kernel
Corpus path
include/asm-generic/simd.h
Extension
.h
Size
615 bytes
Lines
23
Domain
Repository Root And Misc
Bucket
include
Inferred role
Repository Root And Misc: implementation source
Status
source implementation candidate

Why This File Exists

Top-level or miscellaneous repository surface. Use this as map coverage unless a later manual pass promotes the file into a deeper subsystem dossier.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef _ASM_GENERIC_SIMD_H
#define _ASM_GENERIC_SIMD_H

#include <linux/compiler_attributes.h>
#include <linux/preempt.h>
#include <linux/sched.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
 *
 * As architectures typically don't preserve the SIMD register file when
 * taking an interrupt, !in_interrupt() should be a reasonable default.
 */
static __must_check inline bool may_use_simd(void)
{
	return !in_interrupt();
}

#endif	/* _ASM_GENERIC_SIMD_H */

Annotation

Implementation Notes