X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=lzma%2Ftuklib%2Ftuklib_cpucores.h;fp=lzma%2Ftuklib%2Ftuklib_cpucores.h;h=be1ce1c175ae452d17a2f596b40a025b0fd7d8d4;hb=32b8a6b26ed8843828e03e505d2256960bda0980;hp=0000000000000000000000000000000000000000;hpb=d48fc23a4bcf8ca3c406d6e8c8a6f8c6b0fa2f1e;p=zpackage diff --git a/lzma/tuklib/tuklib_cpucores.h b/lzma/tuklib/tuklib_cpucores.h new file mode 100644 index 0000000..be1ce1c --- /dev/null +++ b/lzma/tuklib/tuklib_cpucores.h @@ -0,0 +1,23 @@ +/////////////////////////////////////////////////////////////////////////////// +// +/// \file tuklib_cpucores.h +/// \brief Get the number of CPU cores online +// +// Author: Lasse Collin +// +// This file has been put into the public domain. +// You can do whatever you want with this file. +// +/////////////////////////////////////////////////////////////////////////////// + +#ifndef TUKLIB_CPUCORES_H +#define TUKLIB_CPUCORES_H + +#include "tuklib_common.h" +TUKLIB_DECLS_BEGIN + +#define tuklib_cpucores TUKLIB_SYMBOL(tuklib_cpucores) +extern uint32_t tuklib_cpucores(void); + +TUKLIB_DECLS_END +#endif