chore: add sd_ prefix to a few functions (#967)

This commit is contained in:
Wagner Bruna
2025-12-01 11:43:52 -03:00
committed by GitHub
parent 0743a1b3b5
commit e4c50f1de5
6 changed files with 11 additions and 11 deletions

View File

@@ -57,7 +57,7 @@ void replace_all_chars(std::string& str, char target, char replacement) {
}
}
std::string format(const char* fmt, ...) {
std::string sd_format(const char* fmt, ...) {
va_list ap;
va_list ap2;
va_start(ap, fmt);
@@ -148,7 +148,7 @@ std::string get_full_path(const std::string& dir, const std::string& filename) {
// get_num_physical_cores is copy from
// https://github.com/ggerganov/llama.cpp/blob/master/examples/common.cpp
// LICENSE: https://github.com/ggerganov/llama.cpp/blob/master/LICENSE
int32_t get_num_physical_cores() {
int32_t sd_get_num_physical_cores() {
#ifdef __linux__
// enumerate the set of thread siblings, num entries is num cores
std::unordered_set<std::string> siblings;