19 OF_ASSUME_NONNULL_BEGIN
29 OF_SUBCLASSING_RESTRICTED
31 #ifdef OF_HAVE_CLASS_PROPERTIES 32 @property (
class, readonly, nonatomic)
size_t pageSize;
33 @property (
class, readonly, nonatomic)
size_t numberOfCPUs;
38 @property (
class, readonly, nullable, nonatomic)
45 # if defined(OF_AMD64) || defined(OF_X86) || defined(DOXYGEN) 46 @property (
class, readonly, nonatomic)
bool supportsMMX;
49 @property (
class, readonly, nonatomic)
bool supportsSSE;
50 @property (
class, readonly, nonatomic)
bool supportsSSE2;
51 @property (
class, readonly, nonatomic)
bool supportsSSE3;
55 @property (
class, readonly, nonatomic)
bool supportsAVX;
56 @property (
class, readonly, nonatomic)
bool supportsAVX2;
60 # if defined(OF_POWERPC) || defined(OF_POWERPC64) || defined(DOXYGEN) 63 # if defined(OF_WINDOWS) || defined(DOXYGEN) 64 @property (
class, readonly, nonatomic, getter=
isWindowsNT)
bool windowsNT;
185 #if defined(OF_AMD64) || defined(OF_X86) || defined(DOXYGEN) 320 #if defined(OF_POWERPC) || defined(OF_POWERPC64) || defined(DOXYGEN) 331 #if defined(OF_WINDOWS) || defined(DOXYGEN) 342 + (instancetype)
alloc OF_UNAVAILABLE;
343 - (instancetype)
init OF_UNAVAILABLE;
346 OF_ASSUME_NONNULL_END
348 #ifdef OF_HAVE_SOCKETS 349 # import "OFSystemInfo+NetworkInterfaces.h" bool supportsAESNI()
Returns whether the CPU supports AES-NI.
bool supportsMMX()
Returns whether the CPU supports MMX.
A class for querying information about the system.
Definition: OFSystemInfo.h:30
size_t pageSize()
Returns the size of a page.
Definition: OFSystemInfo.m:351
bool supportsSSE41()
Returns whether the CPU supports SSE4.1.
bool supportsSSE42()
Returns whether the CPU supports SSE4.2.
nullable OFIRI * userDataIRI()
Returns the path where user data for the application can be stored.
Definition: OFSystemInfo.m:392
The root class for all other classes inside ObjFW.
Definition: OFObject.h:686
bool supportsSSSE3()
Returns whether the CPU supports SSSE3.
bool supportsAVX2()
Returns whether the CPU supports AVX2.
bool supportsSHAExtensions()
Returns whether the CPU supports Intel SHA Extensions.
A class for handling strings.
Definition: OFString.h:134
bool supportsSSE2()
Returns whether the CPU supports SSE2.
An abstract class for storing objects in a dictionary.
Definition: OFDictionary.h:78
OFString * ObjFWVersion()
The version of ObjFW.
Definition: OFSystemInfo.m:361
nullable OFIRI * temporaryDirectoryIRI()
Returns a path where temporary files for can be stored.
Definition: OFSystemInfo.m:568
instancetype init()
Initializes an already allocated object.
Definition: OFObject.m:585
unsigned short ObjFWVersionMajor()
The major version of ObjFW.
Definition: OFSystemInfo.m:366
instancetype alloc()
Allocates memory for an instance of the class and sets up the memory pool for the object...
Definition: OFObject.m:437
bool supportsAVX()
Returns whether the CPU supports AVX.
bool supportsEnhanced3DNow()
Returns whether the CPU supports enhanced 3DNow!.
A class for representing IRIs, URIs, URLs and URNs, for parsing them as well as accessing parts of th...
Definition: OFIRI.h:35
bool isWindowsNT()
Returns whether the application is running on Windows NT.
nullable OFString * operatingSystemName()
Returns the name of the operating system the application is running on.
Definition: OFSystemInfo.m:376
nullable OFString * CPUModel()
Returns the model of the CPU.
Definition: OFSystemInfo.m:673
size_t numberOfCPUs()
Returns the number of CPUs installed in the system.
Definition: OFSystemInfo.m:356
nullable OFString * CPUVendor()
Returns the vendor of the CPU.
Definition: OFSystemInfo.m:650
bool supportsSSE()
Returns whether the CPU supports SSE.
nullable OFString * operatingSystemVersion()
Returns the version of the operating system the application is running on.
Definition: OFSystemInfo.m:384
nullable OFIRI * userConfigIRI()
Returns the path where user configuration for the application can be stored.
Definition: OFSystemInfo.m:484
bool supportsSSE3()
Returns whether the CPU supports SSE3.
unsigned short ObjFWVersionMinor()
The minor version of ObjFW.
Definition: OFSystemInfo.m:371
bool supports3DNow()
Returns whether the CPU supports 3DNow!.
bool supportsAltiVec()
Returns whether the CPU and OS support AltiVec.