mirror of
https://github.com/google/cpu_features.git
synced 2025-04-28 07:23:37 +02:00
NFC remove reference to libc memory functions
This commit is contained in:
parent
deb2a61b80
commit
f96d5f74d4
@ -70,7 +70,6 @@ typedef struct {
|
|||||||
PPCFeatures features;
|
PPCFeatures features;
|
||||||
} PPCInfo;
|
} PPCInfo;
|
||||||
|
|
||||||
// This function is guaranteed to be malloc, memset and memcpy free.
|
|
||||||
PPCInfo GetPPCInfo(void);
|
PPCInfo GetPPCInfo(void);
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
@ -107,13 +107,11 @@ typedef struct {
|
|||||||
} X86Info;
|
} X86Info;
|
||||||
|
|
||||||
// Calls cpuid and returns an initialized X86info.
|
// Calls cpuid and returns an initialized X86info.
|
||||||
// This function is guaranteed to be malloc, memset and memcpy free.
|
|
||||||
X86Info GetX86Info(void);
|
X86Info GetX86Info(void);
|
||||||
|
|
||||||
// Returns cache hierarchy informations.
|
// Returns cache hierarchy informations.
|
||||||
// Can call cpuid multiple times.
|
// Can call cpuid multiple times.
|
||||||
// Only works on Intel CPU at the moment.
|
// Only works on Intel CPU at the moment.
|
||||||
// This function is guaranteed to be malloc, memset and memcpy free.
|
|
||||||
CacheInfo GetX86CacheInfo(void);
|
CacheInfo GetX86CacheInfo(void);
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
@ -162,7 +160,6 @@ X86Microarchitecture GetX86Microarchitecture(const X86Info* info);
|
|||||||
// Calls cpuid and fills the brand_string.
|
// Calls cpuid and fills the brand_string.
|
||||||
// - brand_string *must* be of size 49 (beware of array decaying).
|
// - brand_string *must* be of size 49 (beware of array decaying).
|
||||||
// - brand_string will be zero terminated.
|
// - brand_string will be zero terminated.
|
||||||
// - This function calls memcpy.
|
|
||||||
void FillX86BrandString(char brand_string[49]);
|
void FillX86BrandString(char brand_string[49]);
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
x
Reference in New Issue
Block a user