VirtualBox

source: vbox/trunk/src/libs/liblzma-5.8.1/common/hardware_cputhreads.c@ 108911

Last change on this file since 108911 was 108911, checked in by vboxsync, 4 weeks ago

libs/liblzma: Applied and adjusted our liblzma changes to 5.8.1 and export to OSE. jiraref:VBP-1635

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
  • Property sync-process set to export
File size: 927 bytes
Line 
1// SPDX-License-Identifier: 0BSD
2
3///////////////////////////////////////////////////////////////////////////////
4//
5/// \file hardware_cputhreads.c
6/// \brief Get the number of CPU threads or cores
7//
8// Author: Lasse Collin
9//
10///////////////////////////////////////////////////////////////////////////////
11
12#include "common.h"
13
14#include "tuklib_cpucores.h"
15
16
17#ifdef HAVE_SYMBOL_VERSIONS_LINUX
18// This is for compatibility with binaries linked against liblzma that
19// has been patched with xz-5.2.2-compat-libs.patch from RHEL/CentOS 7.
20LZMA_SYMVER_API("lzma_cputhreads@XZ_5.2.2",
21 uint32_t, lzma_cputhreads_522)(void) lzma_nothrow
22 __attribute__((__alias__("lzma_cputhreads_52")));
23
24LZMA_SYMVER_API("lzma_cputhreads@@XZ_5.2",
25 uint32_t, lzma_cputhreads_52)(void) lzma_nothrow;
26
27#define lzma_cputhreads lzma_cputhreads_52
28#endif
29extern LZMA_API(uint32_t)
30lzma_cputhreads(void)
31{
32 return tuklib_cpucores();
33}
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette