Blender V5.0
cpu_check.cc File Reference
#include <string>
#include <cstdio>
#include <cstdlib>

Go to the source code of this file.

Functions

static void __cpuid (int data[4], int selector)
static int cpu_supports_sse42 ()
static const char * cpu_brand_string ()
static __attribute__ ((constructor)) void cpu_check()

Function Documentation

◆ __attribute__()

__attribute__ ( (constructor) )
static

Definition at line 94 of file cpu_check.cc.

References cpu_brand_string(), cpu_supports_sse42(), error(), and printf.

◆ __cpuid()

void __cpuid ( int data[4],
int selector )
static

Definition at line 19 of file cpu_check.cc.

References data.

Referenced by cpu_brand_string(), and cpu_supports_sse42().

◆ cpu_brand_string()

const char * cpu_brand_string ( )
static

Definition at line 47 of file cpu_check.cc.

References __cpuid(), and result.

Referenced by __attribute__().

◆ cpu_supports_sse42()

int cpu_supports_sse42 ( )
static

Definition at line 34 of file cpu_check.cc.

References __cpuid(), num, and result.

Referenced by __attribute__().