VLC  4.0.0-dev
Macros | Functions
vlc_cpu.h File Reference

This file provides CPU features detection. More...

Include dependency graph for vlc_cpu.h:

Go to the source code of this file.

Macros

#define HAVE_FPU   0
 Are single precision floating point operations "fast"? If this preprocessor constant is zero, floating point should be avoided (especially relevant for audio codecs). More...
 

Functions

unsigned vlc_CPU (void)
 Retrieves CPU capability flags. More...
 
unsigned vlc_CPU_raw (void)
 Computes CPU capability flags. More...
 

Detailed Description

This file provides CPU features detection.

Macro Definition Documentation

◆ HAVE_FPU

#define HAVE_FPU   0

Are single precision floating point operations "fast"? If this preprocessor constant is zero, floating point should be avoided (especially relevant for audio codecs).

Function Documentation

◆ vlc_CPU()

unsigned vlc_CPU ( void  )

Retrieves CPU capability flags.

References unlikely, and vlc_CPU_raw().

◆ vlc_CPU_raw()

unsigned vlc_CPU_raw ( void  )

Computes CPU capability flags.

Do not call this function directly. Call vlc_CPU() instead, which caches the correct value.

Computes CPU capability flags.

Referenced by vlc_CPU().