BRL-CAD
Single Instruction Multiple Data
Collaboration diagram for Single Instruction Multiple Data:

Files

file  simd.c
 

Macros

#define BU_SIMD_SSE4_2   7
 
#define BU_SIMD_SSE4_1   6
 
#define BU_SIMD_SSE3   5
 
#define BU_SIMD_ALTIVEC   4
 
#define BU_SIMD_SSE2   3
 
#define BU_SIMD_SSE   2
 
#define BU_SIMD_MMX   1
 
#define BU_SIMD_NONE   0
 

Functions

int bu_simd_level (void)
 
int bu_simd_supported (int level)
 

Detailed Description

Macro Definition Documentation

#define BU_SIMD_SSE4_2   7

Definition at line 40 of file simd.h.

Referenced by bu_simd_level().

#define BU_SIMD_SSE4_1   6

Definition at line 41 of file simd.h.

Referenced by bu_simd_level().

#define BU_SIMD_SSE3   5

Definition at line 42 of file simd.h.

Referenced by bu_simd_level().

#define BU_SIMD_ALTIVEC   4

Definition at line 43 of file simd.h.

#define BU_SIMD_SSE2   3

Definition at line 44 of file simd.h.

Referenced by bu_simd_level().

#define BU_SIMD_SSE   2

Definition at line 45 of file simd.h.

Referenced by bu_simd_level().

#define BU_SIMD_MMX   1

Definition at line 46 of file simd.h.

Referenced by bu_simd_level().

#define BU_SIMD_NONE   0

Definition at line 47 of file simd.h.

Referenced by bu_simd_level().

Function Documentation

int bu_simd_level ( void  )

Detect SIMD capabilities at runtime.

Definition at line 25 of file simd.c.

References BU_SIMD_MMX, BU_SIMD_NONE, BU_SIMD_SSE, BU_SIMD_SSE2, BU_SIMD_SSE3, BU_SIMD_SSE4_1, and BU_SIMD_SSE4_2.

Referenced by bu_simd_supported().

int bu_simd_supported ( int  level)

Detect if requested SIMD capabilities are available at runtime. Returns 1 if they are, 0 if they are not.

Definition at line 52 of file simd.c.

References bu_simd_level().

Here is the call graph for this function: