ObjFW  Diff

Differences From Artifact [83510ab411]:

To Artifact [579d6e7617]:


13
14
15
16
17
18
19


20
21
22
23
24
25
26
 * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
 * file.
 */

#import "OFObject.h"
#import "OFString.h"



/*!
 * @class OFSystemInfo OFSystemInfo.h ObjFW/OFSystemInfo.h
 *
 * @brief A class for querying information about the system.
 */
@interface OFSystemInfo: OFObject
/*!







>
>







13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
 * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
 * file.
 */

#import "OFObject.h"
#import "OFString.h"

OF_ASSUME_NONNULL_BEGIN

/*!
 * @class OFSystemInfo OFSystemInfo.h ObjFW/OFSystemInfo.h
 *
 * @brief A class for querying information about the system.
 */
@interface OFSystemInfo: OFObject
/*!
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
/*!
 * @brief Returns the vendor of the CPU.
 *
 * If the vendor could not be determined, nil is returned instead.
 *
 * @return The vendor of the CPU
 */
+ (OFString*)CPUVendor;

/*!
 * @brief Returns whether the CPU supports MMX.
 *
 * @return Whether the CPU supports MMX
 */
+ (bool)supportsMMX;







|







80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
/*!
 * @brief Returns the vendor of the CPU.
 *
 * If the vendor could not be determined, nil is returned instead.
 *
 * @return The vendor of the CPU
 */
+ (nullable OFString*)CPUVendor;

/*!
 * @brief Returns whether the CPU supports MMX.
 *
 * @return Whether the CPU supports MMX
 */
+ (bool)supportsMMX;
143
144
145
146
147
148
149


/*!
 * @brief Returns whether the CPU supports AVX2.
 *
 * @return Whether the CPU supports AVX2
 */
+ (bool)supportsAVX2;
@end









>
>
145
146
147
148
149
150
151
152
153
/*!
 * @brief Returns whether the CPU supports AVX2.
 *
 * @return Whether the CPU supports AVX2
 */
+ (bool)supportsAVX2;
@end

OF_ASSUME_NONNULL_END