Vecmat 0.2.3
C math and linear algebra library for 2D/3D graphics, physics, and science.
Loading...
Searching...
No Matches
cpu.c File Reference
#include <vecmat.h>

Go to the source code of this file.

Functions

static int vm_cpu_probe_sve (void)
static int vm_cpu_probe_sve2 (void)
vm_cpu_features_t vm_cpu_compiled_features (void)
vm_cpu_features_t vm_cpu_runtime_features (void)
vm_cpu_features_t vm_cpu_selected_features (void)
const char * vm_cpu_name (const vm_cpu_features_t features)

Variables

static vm_cpu_features_t runtime_cache
static int runtime_cached

Function Documentation

◆ vm_cpu_compiled_features()

vm_cpu_features_t vm_cpu_compiled_features ( void )

Definition at line 130 of file cpu.c.

References VM_CPU_AVX, VM_CPU_AVX2, VM_CPU_AVX512, VM_CPU_SCALAR, VM_CPU_SVE, and VM_CPU_SVE2.

Referenced by vm_cpu_selected_features().

◆ vm_cpu_name()

const char * vm_cpu_name ( const vm_cpu_features_t features)

Definition at line 193 of file cpu.c.

References VM_CPU_AVX, VM_CPU_AVX2, VM_CPU_AVX512, VM_CPU_SCALAR, VM_CPU_SVE, and VM_CPU_SVE2.

◆ vm_cpu_probe_sve()

int vm_cpu_probe_sve ( void )
static

Definition at line 110 of file cpu.c.

Referenced by vm_cpu_probe_sve2(), and vm_cpu_runtime_features().

◆ vm_cpu_probe_sve2()

int vm_cpu_probe_sve2 ( void )
static

Definition at line 119 of file cpu.c.

References vm_cpu_probe_sve().

Referenced by vm_cpu_runtime_features().

◆ vm_cpu_runtime_features()

◆ vm_cpu_selected_features()

vm_cpu_features_t vm_cpu_selected_features ( void )

Variable Documentation

◆ runtime_cache

vm_cpu_features_t runtime_cache
static

Definition at line 34 of file cpu.c.

Referenced by vm_cpu_runtime_features().

◆ runtime_cached

int runtime_cached
static

Definition at line 35 of file cpu.c.

Referenced by vm_cpu_runtime_features().