ReactOS 0.4.15-dev-8096-ga0eec98
fma3_available.c File Reference
#include <intrin.h>
#include <sect_attribs.h>
Include dependency graph for fma3_available.c:

Go to the source code of this file.

Macros

#define _CRTALLOC(x)
 

Typedefs

typedef int(__cdecl_PIFV) (void)
 

Functions

int __cdecl _set_FMA3_enable (int flag)
 
int __fma3_lib_init (void)
 
 _CRTALLOC (".CRT$XIC")
 

Variables

int __fma3_is_available = 0
 
int __use_fma3_lib = 0
 

Macro Definition Documentation

◆ _CRTALLOC

#define _CRTALLOC (   x)

Definition at line 37 of file fma3_available.c.

Typedef Documentation

◆ _PIFV

typedef int(__cdecl * _PIFV) (void)

Definition at line 40 of file fma3_available.c.

Function Documentation

◆ __fma3_lib_init()

int __fma3_lib_init ( void  )

◆ _CRTALLOC()

_CRTALLOC ( ".CRT$XIC"  )

Definition at line 54 of file fma3_available.c.

57{
58 int CPUID[4]; // CPUID[2] is ECX;
59
61 __cpuid(CPUID, 1);
62 if (CPUID[2] & (1 << 12)) {
64 }
65
67 return 0;
68}
int __fma3_is_available
int __use_fma3_lib
PPC_QUAL void __cpuid(int CPUInfo[], const int InfoType)
Definition: intrin_ppc.h:682

◆ _set_FMA3_enable()

int __cdecl _set_FMA3_enable ( int  flag)

Definition at line 46 of file fma3_available.c.

47{
49 return __use_fma3_lib;
50}
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean flag
Definition: glfuncs.h:52

Variable Documentation

◆ __fma3_is_available

int __fma3_is_available = 0

Definition at line 42 of file fma3_available.c.

Referenced by _CRTALLOC(), and _set_FMA3_enable().

◆ __use_fma3_lib

int __use_fma3_lib = 0

Definition at line 43 of file fma3_available.c.

Referenced by _CRTALLOC(), and _set_FMA3_enable().