ObjFW
OFSystemInfo.h
1 /*
2  * Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015
3  * Jonathan Schleifer <js@webkeks.org>
4  *
5  * All rights reserved.
6  *
7  * This file is part of ObjFW. It may be distributed under the terms of the
8  * Q Public License 1.0, which can be found in the file LICENSE.QPL included in
9  * the packaging of this file.
10  *
11  * Alternatively, it may be distributed under the terms of the GNU General
12  * Public License, either version 2 or 3, which can be found in the file
13  * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
14  * file.
15  */
16 
17 #import "OFObject.h"
18 #import "OFString.h"
19 
20 OF_ASSUME_NONNULL_BEGIN
21 
33 + (size_t)pageSize;
34 
42 + (size_t)numberOfCPUs;
43 
53 
65 
79 
87 + (nullable OFString*)CPUVendor;
88 
94 + (bool)supportsMMX;
95 
101 + (bool)supportsSSE;
102 
108 + (bool)supportsSSE2;
109 
115 + (bool)supportsSSE3;
116 
122 + (bool)supportsSSSE3;
123 
129 + (bool)supportsSSE41;
130 
136 + (bool)supportsSSE42;
137 
143 + (bool)supportsAVX;
144 
150 + (bool)supportsAVX2;
151 @end
152 
153 OF_ASSUME_NONNULL_END
OFString * userConfigPath()
Returns the path where user configuration for the application can be stored.
of_string_encoding_t
The encoding of a string.
Definition: OFString.h:50
bool supportsMMX()
Returns whether the CPU supports MMX.
A class for querying information about the system.
Definition: OFSystemInfo.h:27
size_t pageSize()
Returns the size of a page.
bool supportsSSE41()
Returns whether the CPU supports SSE4.1.
bool supportsSSE42()
Returns whether the CPU supports SSE4.2.
The root class for all other classes inside ObjFW.
Definition: OFObject.h:364
of_string_encoding_t native8BitEncoding()
Returns the native 8-bit string encoding of the operating system.
bool supportsSSSE3()
Returns whether the CPU supports SSSE3.
bool supportsAVX2()
Returns whether the CPU supports AVX2.
A class for handling strings.
Definition: OFString.h:91
nullable OFString * CPUVendor()
Returns the vendor of the CPU.
bool supportsSSE2()
Returns whether the CPU supports SSE2.
OFString * userDataPath()
Returns the path where user data for the application can be stored.
bool supportsAVX()
Returns whether the CPU supports AVX.
size_t numberOfCPUs()
Returns the number of CPUs installed in the system.
bool supportsSSE()
Returns whether the CPU supports SSE.
bool supportsSSE3()
Returns whether the CPU supports SSE3.