diff options
author | Guillaume Chatelet <gchatelet@google.com> | 2021-10-28 11:56:57 +0000 |
---|---|---|
committer | Guillaume Chatelet <gchatelet@google.com> | 2021-10-28 11:56:57 +0000 |
commit | f96d5f74d492bd88eda9f8c583f10b3f6d0a3227 (patch) | |
tree | 30a006756001e24d99120cbe95d4adc8662a2411 | |
parent | deb2a61b808eda88d448609a6442d5426e802d9d (diff) | |
download | cpu_features-f96d5f74d492bd88eda9f8c583f10b3f6d0a3227.tar.gz |
NFC remove reference to libc memory functions
-rw-r--r-- | include/cpuinfo_ppc.h | 1 | ||||
-rw-r--r-- | include/cpuinfo_x86.h | 3 |
2 files changed, 0 insertions, 4 deletions
diff --git a/include/cpuinfo_ppc.h b/include/cpuinfo_ppc.h index c3f71a0..da3e696 100644 --- a/include/cpuinfo_ppc.h +++ b/include/cpuinfo_ppc.h @@ -70,7 +70,6 @@ typedef struct { PPCFeatures features; } PPCInfo; -// This function is guaranteed to be malloc, memset and memcpy free. PPCInfo GetPPCInfo(void); typedef struct { diff --git a/include/cpuinfo_x86.h b/include/cpuinfo_x86.h index 6285391..5988bb9 100644 --- a/include/cpuinfo_x86.h +++ b/include/cpuinfo_x86.h @@ -107,13 +107,11 @@ typedef struct { } X86Info; // Calls cpuid and returns an initialized X86info. -// This function is guaranteed to be malloc, memset and memcpy free. X86Info GetX86Info(void); // Returns cache hierarchy informations. // Can call cpuid multiple times. // Only works on Intel CPU at the moment. -// This function is guaranteed to be malloc, memset and memcpy free. CacheInfo GetX86CacheInfo(void); typedef enum { @@ -162,7 +160,6 @@ X86Microarchitecture GetX86Microarchitecture(const X86Info* info); // Calls cpuid and fills the brand_string. // - brand_string *must* be of size 49 (beware of array decaying). // - brand_string will be zero terminated. -// - This function calls memcpy. void FillX86BrandString(char brand_string[49]); //////////////////////////////////////////////////////////////////////////////// |