From f96d5f74d492bd88eda9f8c583f10b3f6d0a3227 Mon Sep 17 00:00:00 2001 From: Guillaume Chatelet Date: Thu, 28 Oct 2021 11:56:57 +0000 Subject: [PATCH] NFC remove reference to libc memory functions --- include/cpuinfo_ppc.h | 1 - include/cpuinfo_x86.h | 3 --- 2 files changed, 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]); ////////////////////////////////////////////////////////////////////////////////