BRL-CAD
Single Instruction Multiple Data

Single Instruction Multiple Data support. More...

Collaboration diagram for Single Instruction Multiple Data:

Files

file  simd.h
 

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

Single Instruction Multiple Data support.

Macro Definition Documentation

◆ BU_SIMD_SSE4_2

#define BU_SIMD_SSE4_2   7

Definition at line 37 of file simd.h.

◆ BU_SIMD_SSE4_1

#define BU_SIMD_SSE4_1   6

Definition at line 38 of file simd.h.

◆ BU_SIMD_SSE3

#define BU_SIMD_SSE3   5

Definition at line 39 of file simd.h.

◆ BU_SIMD_ALTIVEC

#define BU_SIMD_ALTIVEC   4

Definition at line 40 of file simd.h.

◆ BU_SIMD_SSE2

#define BU_SIMD_SSE2   3

Definition at line 41 of file simd.h.

◆ BU_SIMD_SSE

#define BU_SIMD_SSE   2

Definition at line 42 of file simd.h.

◆ BU_SIMD_MMX

#define BU_SIMD_MMX   1

Definition at line 43 of file simd.h.

◆ BU_SIMD_NONE

#define BU_SIMD_NONE   0

Definition at line 44 of file simd.h.

Function Documentation

◆ bu_simd_level()

int bu_simd_level ( void  )

Detect SIMD capabilities at runtime.

◆ 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.