GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
AG_CPUINFO(3) FreeBSD Library Functions Manual AG_CPUINFO(3)

AG_CPUInfo
agar architecture information structure

#include <agar/core.h>

The agar AG_CPUInfo interface provides some information about the current architecture and architecture extensions.

void
AG_GetCPUInfo(AG_CPUInfo *info);

The AG_GetCPUInfo() function returns CPU information into an existing info structure.

For the AG_CPUInfo structure:
const char *arch
A string describing the architecture (e.g., "alpha", "i386", etc).
char vendorID[13]
A vendor ID string (architecture-specific).
Uint32 ext
A list of architecture extensions that have some relevance to user applications (see ARCHITECTURE EXTENSIONS below).

The ext field can contain the following flags:
AG_EXT_CPUID
The i386 CPUID instruction is supported.
AG_EXT_MMX
MMX instructions are available.
AG_EXT_MMX_EXT
AMD extensions to MMX are available.
AG_EXT_3DNOW
3dNow! is supported.
AG_EXT_3DNOW_EXT
Extended 3dNow! is supported.
AG_EXT_ALTIVEC
AltiVec instructions are supported.
AG_EXT_SSE
Streaming SIMD extensions are supported.
AG_EXT_SSE2
SSE2 extensions are supported.
AG_EXT_SSE3
SSE3 (PNI) extensions are supported.
AG_EXT_LONG_MODE
Long mode is available.
AG_EXT_RDTSCP
The RDTSCP instruction exists.
AG_EXT_FXSR
Fast FXSAVE/FXSTOR is available.
AG_EXT_PAGE_NX
The per-page no-execute bit (W^X) is supported.
AG_EXT_SSE5A
SSE5A extensions are available.
AG_EXT_3DNOW_PREFETCH
The PREFETCH and PREFETCHW instructions for 3dNow! are available.
AG_EXT_SSE_MISALIGNED
Misaligned SSE mode is supported.
AG_EXT_SSE4A
SSE4A extensions are available.
AG_EXT_ONCHIP_FPU
The floating point unit is on-chip.
AG_EXT_TSC
The Time Stamp Counter is available.
AG_EXT_CMOV
The CMOV (Conditional Move) instruction exists.
AG_EXT_CLFLUSH
The CLFLUSH (Cache Line Flush) instruction exists.
AG_EXT_HTT
Hyper-Threading technology is supported.
AG_EXT_MON
MONITOR and MWAIT instructions exist.
AG_EXT_VMX
Virtual Machine Extensions are available.
AG_EXT_SSSE3
SSSE3 extensions are available.
AG_EXT_SSE41
SSE4.1 extensions are available.
AG_EXT_SSE42
SSE4.2 extensions are available.

AG_Intro(3)

The AG_CPUInfo interface first appeared in Agar 1.3.
November 18, 2007 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.