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"
An abstract class for storing objects in a dictionary.
Definition: OFDictionary.h:80
A class for representing IRIs, URIs, URLs and URNs, for parsing them as well as accessing parts of th...
Definition: OFIRI.h:37
The root class for all other classes inside ObjFW.
Definition: OFObject.h:688
instancetype init()
Initializes an already allocated object.
Definition: OFObject.m:585
instancetype alloc()
Allocates memory for an instance of the class and sets up the memory pool for the object.
Definition: OFObject.m:437
A class for handling strings.
Definition: OFString.h:135
A class for querying information about the system.
Definition: OFSystemInfo.h:31
nullable OFString * CPUVendor()
Returns the vendor of the CPU.
Definition: OFSystemInfo.m:650
bool supportsAVX()
Returns whether the CPU supports AVX.
size_t pageSize()
Returns the size of a page.
Definition: OFSystemInfo.m:351
bool supportsSSE3()
Returns whether the CPU supports SSE3.
bool supports3DNow()
Returns whether the CPU supports 3DNow!.
bool supportsAltiVec()
Returns whether the CPU and OS support AltiVec.
bool supportsEnhanced3DNow()
Returns whether the CPU supports enhanced 3DNow!.
nullable OFIRI * userDataIRI()
Returns the path where user data for the application can be stored.
Definition: OFSystemInfo.m:392
nullable OFIRI * temporaryDirectoryIRI()
Returns a path where temporary files for can be stored.
Definition: OFSystemInfo.m:568
nullable OFString * operatingSystemName()
Returns the name of the operating system the application is running on.
Definition: OFSystemInfo.m:376
OFString * ObjFWVersion()
The version of ObjFW.
Definition: OFSystemInfo.m:361
nullable OFString * operatingSystemVersion()
Returns the version of the operating system the application is running on.
Definition: OFSystemInfo.m:384
size_t numberOfCPUs()
Returns the number of CPUs installed in the system.
Definition: OFSystemInfo.m:356
nullable OFString * CPUModel()
Returns the model of the CPU.
Definition: OFSystemInfo.m:673
bool supportsSSE41()
Returns whether the CPU supports SSE4.1.
bool supportsSSSE3()
Returns whether the CPU supports SSSE3.
bool isWindowsNT()
Returns whether the application is running on Windows NT.
nullable OFIRI * userConfigIRI()
Returns the path where user configuration for the application can be stored.
Definition: OFSystemInfo.m:484
bool supportsSSE42()
Returns whether the CPU supports SSE4.2.
unsigned short ObjFWVersionMinor()
The minor version of ObjFW.
Definition: OFSystemInfo.m:371
bool supportsAVX2()
Returns whether the CPU supports AVX2.
bool supportsAESNI()
Returns whether the CPU supports AES-NI.
bool supportsSSE()
Returns whether the CPU supports SSE.
bool supportsSHAExtensions()
Returns whether the CPU supports Intel SHA Extensions.
unsigned short ObjFWVersionMajor()
The major version of ObjFW.
Definition: OFSystemInfo.m:366
bool supportsSSE2()
Returns whether the CPU supports SSE2.
bool supportsMMX()
Returns whether the CPU supports MMX.