xref: /freebsd/contrib/xz/src/liblzma/common/hardware_cputhreads.c (revision dd41de95a84d979615a2ef11df6850622bf6184e)
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