xref: /freebsd/contrib/xz/src/liblzma/common/hardware_cputhreads.c (revision 924226fba12cc9a228c73b956e1b7fa24c60b055)
1 ///////////////////////////////////////////////////////////////////////////////
2 //
3 /// \file       hardware_cputhreads.c
4 /// \brief      Get the number of CPU threads or cores
5 //
6 //  Author:     Lasse Collin
7 //
8 //  This file has been put into the public domain.
9 //  You can do whatever you want with this file.
10 //
11 ///////////////////////////////////////////////////////////////////////////////
12 
13 #include "common.h"
14 
15 #include "tuklib_cpucores.h"
16 
17 
18 extern LZMA_API(uint32_t)
19 lzma_cputhreads(void)
20 {
21 	return tuklib_cpucores();
22 }
23