(git:34ef472)
machine_cpuid.c File Reference
#include "machine_cpuid.h"

Go to the source code of this file.

Functions

int m_cpuid_static (void)
 This routine determines the CPUID according to the given compiler flags (expected to be similar to Fortran). Similar to other Fortran compilers, "gfortran -E -dM -mavx - < /dev/null | grep AVX" defines a variety of predefined macros (also similar to C). However, with a Fortran translation unit only a subset of these definitions disappears ("gfortran -E -dM -mavx my.F | grep AVX") hence an implementation in C is used. More...
 

Function Documentation

◆ m_cpuid_static()

int m_cpuid_static ( void  )

This routine determines the CPUID according to the given compiler flags (expected to be similar to Fortran). Similar to other Fortran compilers, "gfortran -E -dM -mavx - < /dev/null | grep AVX" defines a variety of predefined macros (also similar to C). However, with a Fortran translation unit only a subset of these definitions disappears ("gfortran -E -dM -mavx my.F | grep AVX") hence an implementation in C is used.

Definition at line 25 of file machine_cpuid.c.

Here is the caller graph for this function: