19 OF_ASSUME_NONNULL_BEGIN
26 OF_SUBCLASSING_RESTRICTED
28 #ifdef OF_HAVE_CLASS_PROPERTIES
29 @property (
class, readonly, nonatomic)
size_t pageSize;
30 @property (
class, readonly, nonatomic)
size_t numberOfCPUs;
35 @property (
class, readonly, nullable, nonatomic)
43 # if defined(OF_X86_64) || defined(OF_X86) || defined(DOXYGEN)
44 @property (
class, readonly, nonatomic)
bool supportsMMX;
45 @property (
class, readonly, nonatomic)
bool supportsSSE;
46 @property (
class, readonly, nonatomic)
bool supportsSSE2;
47 @property (
class, readonly, nonatomic)
bool supportsSSE3;
51 @property (
class, readonly, nonatomic)
bool supportsAVX;
52 @property (
class, readonly, nonatomic)
bool supportsAVX2;
56 # if defined(OF_POWERPC) || defined(OF_POWERPC64) || defined(DOXYGEN)
57 @property (
class, readonly, nonatomic)
bool supportsAltiVec;
60 @property (
class, readonly, nonatomic, getter=isWindowsNT)
bool windowsNT;
163 #if defined(OF_X86_64) || defined(OF_X86) || defined(DOXYGEN)
280 #if defined(OF_POWERPC) || defined(OF_POWERPC64)
288 + (bool)supportsAltiVec;
302 + (instancetype)
alloc OF_UNAVAILABLE;
303 - (instancetype)
init OF_UNAVAILABLE;
306 OF_ASSUME_NONNULL_END
The root class for all other classes inside ObjFW.
Definition: OFObject.h:520
instancetype init()
Initializes an already allocated object.
Definition: OFObject.m:547
instancetype alloc()
Allocates memory for an instance of the class and sets up the memory pool for the object.
Definition: OFObject.m:392
A class for handling strings.
Definition: OFString.h:132
A class for querying information about the system.
Definition: OFSystemInfo.h:28
nullable OFString * CPUVendor()
Returns the vendor of the CPU.
Definition: OFSystemInfo.m:530
bool supportsAVX()
Returns whether the CPU supports AVX.
size_t pageSize()
Returns the size of a page.
Definition: OFSystemInfo.m:309
nullable OFString * userConfigPath()
Returns the path where user configuration for the application can be stored.
Definition: OFSystemInfo.m:444
bool supportsSSE3()
Returns whether the CPU supports SSE3.
nullable OFString * userDataPath()
Returns the path where user data for the application can be stored.
Definition: OFSystemInfo.m:351
unsigned int ObjFWVersionMajor()
The major version of ObjFW.
Definition: OFSystemInfo.m:324
nullable OFString * operatingSystemName()
Returns the name of the operating system the application is running on.
Definition: OFSystemInfo.m:334
OFString * ObjFWVersion()
The version of ObjFW.
Definition: OFSystemInfo.m:319
nullable OFString * operatingSystemVersion()
Returns the version of the operating system the application is running on.
Definition: OFSystemInfo.m:342
size_t numberOfCPUs()
Returns the number of CPUs installed in the system.
Definition: OFSystemInfo.m:314
nullable OFString * CPUModel()
Returns the model of the CPU.
Definition: OFSystemInfo.m:551
bool supportsSSE41()
Returns whether the CPU supports SSE4.1.
bool supportsSSSE3()
Returns whether the CPU supports SSSE3.
bool supportsSSE42()
Returns whether the CPU supports SSE4.2.
bool supportsAVX2()
Returns whether the CPU supports AVX2.
unsigned int ObjFWVersionMinor()
The minor version of ObjFW.
Definition: OFSystemInfo.m:329
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.
bool supportsSSE2()
Returns whether the CPU supports SSE2.
bool supportsMMX()
Returns whether the CPU supports MMX.