FFmpeg
Data Structures | Functions | Variables
cpu.c File Reference
#include "checkasm_config.h"
#include <inttypes.h>
#include "cpu.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  jedec_vendor
 

Functions

COLD void checkasm_init_cpu (void)
 
COLD unsigned long checkasm_getauxval (unsigned long type)
 
static const COLD char * get_brand_string (char *buf, size_t buflen, int affinity)
 
COLD void checkasm_cpu_info (void(*info_cb)(void *priv, const char *fmt,...), void *priv, const CheckasmConfig *config)
 
static COLD int jvcmp (const void *pa, const void *pb)
 
const COLD char * checkasm_get_jedec_vendor_name (unsigned bank, unsigned offset)
 

Variables

static const struct jedec_vendor vendors []
 

Function Documentation

◆ checkasm_init_cpu()

COLD void checkasm_init_cpu ( void  )

Definition at line 42 of file cpu.c.

Referenced by checkasm_run().

◆ checkasm_getauxval()

COLD unsigned long checkasm_getauxval ( unsigned long  type)

Definition at line 51 of file cpu.c.

◆ get_brand_string()

static const COLD char* get_brand_string ( char *  buf,
size_t  buflen,
int  affinity 
)
static

Definition at line 65 of file cpu.c.

Referenced by checkasm_cpu_info().

◆ checkasm_cpu_info()

COLD void checkasm_cpu_info ( void(*)(void *priv, const char *fmt,...)  info_cb,
void *  priv,
const CheckasmConfig config 
)

Definition at line 83 of file cpu.c.

Referenced by print_bench_header(), and print_info().

◆ jvcmp()

static COLD int jvcmp ( const void *  pa,
const void *  pb 
)
static

Definition at line 150 of file cpu.c.

Referenced by checkasm_get_jedec_vendor_name().

◆ checkasm_get_jedec_vendor_name()

const COLD char* checkasm_get_jedec_vendor_name ( unsigned  bank,
unsigned  offset 
)

Definition at line 159 of file cpu.c.

Variable Documentation

◆ vendors

const struct jedec_vendor vendors[]
static
Initial value:
= {
{ 0, 0x01, "AMD" },
{ 0, 0x09, "Intel" },
{ 0, 0x29, "Microchip" },
{ 0, 0x48, "Apple" },
{ 2, 0x27, "MIPS" },
{ 3, 0x6B, "NVIDIA" },
{ 4, 0x3B, "ARM" },
{ 6, 0x1E, "Andes Tech" },
{ 9, 0x09, "SiFive Inc" },
{ 10, 0x03, "Codasip GmbH" },
{ 11, 0x37, "T-Head" },
{ 14, 0x10, "SpacemiT" },
{ 15, 0x21, "Tenstorrent" },
}

Definition at line 132 of file cpu.c.

Referenced by checkasm_get_jedec_vendor_name().