A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/ncbi__system_8hpp_source.html below:

NCBI C++ ToolKit: include/corelib/ncbi_system.hpp Source File

1 #ifndef NCBI_SYSTEM__HPP 2 #define NCBI_SYSTEM__HPP 41 #if defined(NCBI_OS_MSWIN) 244  unsigned int

terminate_delay_time,

278  static string VendorStr

(

void

) {

return

IS().m_VendorStr; }

279  static string BrandStr

(

void

) {

return

IS().m_BrandStr; }

281  static bool SSE3

(

void

) {

return

IS().f01_ECX_[0]; }

282  static bool PCLMULQDQ

(

void

) {

return

IS().f01_ECX_[1]; }

283  static bool MONITOR

(

void

) {

return

IS().f01_ECX_[3]; }

284  static bool SSSE3

(

void

) {

return

IS().f01_ECX_[9]; }

285  static bool FMA

(

void

) {

return

IS().f01_ECX_[12]; }

286  static bool CMPXCHG16B

(

void

) {

return

IS().f01_ECX_[13]; }

287  static bool SSE41

(

void

) {

return

IS().f01_ECX_[19]; }

288  static bool SSE42

(

void

) {

return

IS().f01_ECX_[20]; }

289  static bool MOVBE

(

void

) {

return

IS().f01_ECX_[22]; }

290  static bool POPCNT

(

void

) {

return

IS().f01_ECX_[23]; }

291  static bool AES

(

void

) {

return

IS().f01_ECX_[25]; }

292  static bool XSAVE

(

void

) {

return

IS().f01_ECX_[26]; }

293  static bool OSXSAVE

(

void

) {

return

IS().f01_ECX_[27]; }

294  static bool AVX

(

void

) {

return

IS().f01_ECX_[28]; }

295  static bool F16C

(

void

) {

return

IS().f01_ECX_[29]; }

296  static bool RDRAND

(

void

) {

return

IS().f01_ECX_[30]; }

298  static bool MSR

(

void

) {

return

IS().f01_EDX_[5]; }

299  static bool CX8

(

void

) {

return

IS().f01_EDX_[8]; }

300  static bool SEP

(

void

) {

return

IS().f01_EDX_[11]; }

301  static bool CMOV

(

void

) {

return

IS().f01_EDX_[15]; }

302  static bool CLFSH

(

void

) {

return

IS().f01_EDX_[19]; }

303  static bool MMX

(

void

) {

return

IS().f01_EDX_[23]; }

304  static bool FXSR

(

void

) {

return

IS().f01_EDX_[24]; }

305  static bool SSE

(

void

) {

return

IS().f01_EDX_[25]; }

306  static bool SSE2

(

void

) {

return

IS().f01_EDX_[26]; }

308  static bool FSGSBASE

(

void

) {

return

IS().f07_EBX_[0]; }

309  static bool BMI1

(

void

) {

return

IS().f07_EBX_[3]; }

310  static bool HLE

(

void

) {

return

IS().isIntel() && IS().f07_EBX_[4]; }

311  static bool AVX2

(

void

) {

return

IS().f07_EBX_[5]; }

312  static bool BMI2

(

void

) {

return

IS().f07_EBX_[8]; }

313  static bool ERMS

(

void

) {

return

IS().f07_EBX_[9]; }

314  static bool INVPCID

(

void

) {

return

IS().f07_EBX_[10]; }

315  static bool RTM

(

void

) {

return

IS().isIntel() && IS().f07_EBX_[11]; }

316  static bool AVX512F

(

void

) {

return

IS().f07_EBX_[16]; }

317  static bool RDSEED

(

void

) {

return

IS().f07_EBX_[18]; }

318  static bool ADX

(

void

) {

return

IS().f07_EBX_[19]; }

319  static bool AVX512PF

(

void

) {

return

IS().f07_EBX_[26]; }

320  static bool AVX512ER

(

void

) {

return

IS().f07_EBX_[27]; }

321  static bool AVX512CD

(

void

) {

return

IS().f07_EBX_[28]; }

322  static bool SHA

(

void

) {

return

IS().f07_EBX_[29]; }

326  static bool LAHF

(

void

) {

return

IS().f81_ECX_[0]; }

327  static bool LZCNT

(

void

) {

return

IS().isIntel() && IS().f81_ECX_[5]; }

328  static bool ABM

(

void

) {

return

IS().isAMD() && IS().f81_ECX_[5]; }

329  static bool SSE4a

(

void

) {

return

IS().isAMD() && IS().f81_ECX_[6]; }

330  static bool XOP

(

void

) {

return

IS().isAMD() && IS().f81_ECX_[11]; }

331  static bool TBM

(

void

) {

return

IS().isAMD() && IS().f81_ECX_[21]; }

333  static bool SYSCALL

(

void

) {

return

IS().isIntel() && IS().f81_EDX_[11]; }

334  static bool MMXEXT

(

void

) {

return

IS().isAMD() && IS().f81_EDX_[22]; }

335  static bool RDTSCP

(

void

) {

return

IS().isIntel() && IS().f81_EDX_[27]; }

336  static bool _3DNOWEXT

(

void

) {

return

IS().isAMD() && IS().f81_EDX_[30]; }

337  static bool _3DNOW

(

void

) {

return

IS().isAMD() && IS().f81_EDX_[31]; }

341  static void Print

(

void

);

349  bool isAMD

(

void

)

const

{

return

m_Vendor == eAMD; }

350  bool isIntel

(

void

)

const

{

return

m_Vendor == eIntel; }

383  static string

GetUserName(

void

);

390  static unsigned int

GetCpuCountAllowed(

void

);

396  static double

GetUptime(

void

);

403  static Uint8

GetTotalPhysicalMemorySize(

void

);

408  static Uint8

GetAvailPhysicalMemorySize(

void

);

424  static

clock_t GetClockTicksPerSecond(

void

);

477 extern bool GetMemoryUsage

(

size_t

* total,

size_t

* resident,

size_t

* shared);

562 extern void SleepSec

(

unsigned long

sec,

static string VendorStr(void)

static bool AVX512PF(void)

static bool CMPXCHG16B(void)

static bool AVX512F(void)

static bool PCLMULQDQ(void)

EVendor

CPU vendor – very limited list.

static bool OSXSAVE(void)

static EVendor Vendor(void)

static string BrandStr(void)

static bool AVX512CD(void)

static bool PREFETCHWT1(void)

static bool FSGSBASE(void)

static bool SYSCALL(void)

static bool AVX512ER(void)

static bool MONITOR(void)

static bool _3DNOWEXT(void)

static bool INVPCID(void)

static unsigned int GetCpuCount(void)

Return number of active CPUs/cores (never less than 1).

static unsigned long GetVirtualMemoryPageSize(void)

Return virtual memory page size.

static unsigned long GetVirtualMemoryAllocationGranularity(void)

Return size of an allocation unit (usually it is a multiple of page size).

static Uint8 GetTotalPhysicalMemorySize(void)

Return the amount of actual/total physical memory, in bytes.

static string GetUserName(void)

Get actual user name for the current process.

void(*)(CSeq_entry_Handle seh, IWorkbench *wb, const CSerialObject &obj) handler

void Print(const CCompactSAMApplication::AlignInfo &ai)

EInterruptOnSignal

Interrupt on signal mode.

@ eRestartOnSignal

Restart operation if interrupted by a signal.

uint64_t Uint8

8-byte (64-bit) unsigned integer

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

#define NCBI_XNCBI_EXPORT

Defines MS Windows specifics for our "C++" code.

bool SetCpuTimeLimit(unsigned int max_cpu_time, unsigned int terminate_delay_time, TLimitsPrintHandler handler=NULL, TLimitsPrintParameter parameter=NULL)

[UNIX only] Set CPU time usage limit.

int TSuppressSystemMessageBox

Binary OR of "ESuppressSystemMessageBox".

void SleepMilliSec(unsigned long ml_sec, EInterruptOnSignal onsignal=eRestartOnSignal)

void * TLimitsPrintParameter

Type of parameter for print handler.

unsigned int GetCpuCount(void)

Return number of active CPUs (never less than 1).

bool MemoryAdvise(void *addr, size_t len, EMemoryAdvise advise)

[UNIX only] Advise on memory usage for specified memory region.

EMemoryAdvise

Memory advise.

@ eMADV_WillNeed

Expect access in the near future.

@ eMADV_Mergeable

KSM may merge identical pages.

@ eMADV_Normal

No further special treatment – by default.

@ eMADV_Random

Expect random page references.

@ eMADV_DontNeed

Do not expect access in the near future.

@ eMADV_Sequential

Expect sequential page references.

@ eMADV_DoFork

Do inherit across fork() – by default.

@ eMADV_DontFork

Don't inherit across fork()

@ eMADV_Unmergeable

KSM may not merge identical pages – by default.

ESuppressSystemMessageBox

Suppress Diagnostic Popup Messages.

@ fSuppress_Debug

Debug library.

@ fSuppress_System

System errors.

@ fSuppress_Runtime

Runtime library.

@ fSuppress_Exception

Unhandled exceptions.

void(* TLimitsPrintHandler)(ELimitsExitCode, size_t, CTime &, TLimitsPrintParameter)

Type of handler for printing a dump information after generating any limitation event.

void DisableSuppressSystemMessageBox()

Prevent run of SuppressSystemMessageBox().

int GetProcessFDCount(int *soft_limit=NULL, int *hard_limit=NULL)

Uint8 GetPhysicalMemorySize(void)

Return the amount of physical memory available in the system.

bool SetMemoryLimitSoft(size_t max_size, TLimitsPrintHandler handler=NULL, TLimitsPrintParameter parameter=NULL)

[UNIX only] Set soft memory limit.

bool SetMemoryLimitHard(size_t max_size, TLimitsPrintHandler handler=NULL, TLimitsPrintParameter parameter=NULL)

[UNIX only] Set hard memory limit.

bool IsSuppressedDebugSystemMessageBox()

Check if system message box has been suppressed for debug library.

ELimitsExitCode

Process limits.

@ eLEC_Cpu

CPU time usage limit.

@ eLEC_Memory

Memory limit.

size_t GetVirtualMemoryLimitHard(void)

[UNIX only] Get "hard" memory limit of the virtual memory (address space) in bytes for a current proc...

bool SetMemoryLimit(size_t max_size, TLimitsPrintHandler handler=NULL, TLimitsPrintParameter parameter=NULL)

[UNIX only] Set memory limit.

bool GetCurrentProcessTimes(double *user_time, double *system_time)

bool GetMemoryUsage(size_t *total, size_t *resident, size_t *shared)

bool VerifyCpuCompatibility(string *message=nullptr)

Verify that the CPU, where an application run, is compatible with flags it compiled for.

size_t GetVirtualMemoryLimitSoft(void)

[UNIX only] Get "soft" memory limit of the virtual memory (address space) in bytes for a current proc...

void SuppressSystemMessageBox(TSuppressSystemMessageBox mode=fSuppress_Default)

Suppress popup messages on execution errors.

void SleepMicroSec(unsigned long mc_sec, EInterruptOnSignal onsignal=eRestartOnSignal)

string GetProcessUserName(void)

System/memory information (deprecated, please use CSystemInfo class)

int GetProcessThreadCount(void)

[Linux only] Provides the number of threads in the current process.

unsigned long GetVirtualMemoryAllocationGranularity(void)

Return size of an allocation unit (usually it is a multiple of page size).

unsigned long GetVirtualMemoryPageSize(void)

Return virtual memory page size.

void SleepSec(unsigned long sec, EInterruptOnSignal onsignal=eRestartOnSignal)

Sleep.

Defines: CTimeFormat - storage class for time format.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4