VirtualBox

source: vbox/trunk/src/libs/liblzma-5.4.1/common/hardware_cputhreads.c@ 102278

最後變更 在這個檔案從102278是 98730,由 vboxsync 提交於 2 年 前

libs/liblzma-5.4.1: Export to OSE, bugref:10254

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 996 位元組
 
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#ifdef HAVE_SYMBOL_VERSIONS_LINUX
19// This is for compatibility with binaries linked against liblzma that
20// has been patched with xz-5.2.2-compat-libs.patch from RHEL/CentOS 7.
21LZMA_SYMVER_API("lzma_cputhreads@XZ_5.2.2",
22 uint32_t, lzma_cputhreads_522)(void) lzma_nothrow
23 __attribute__((__alias__("lzma_cputhreads_52")));
24
25LZMA_SYMVER_API("lzma_cputhreads@@XZ_5.2",
26 uint32_t, lzma_cputhreads_52)(void) lzma_nothrow;
27
28#define lzma_cputhreads lzma_cputhreads_52
29#endif
30extern LZMA_API(uint32_t)
31lzma_cputhreads(void)
32{
33 return tuklib_cpucores();
34}
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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