Differences From Artifact [cb7463de6c]:
- File
src/OFSystemInfo.h
— part of check-in
[952af5f0aa]
at
2015-10-24 20:53:32
on branch trunk
— OFSystemInfo.h: Use OF_X86 rather than OF_X86_ASM
The availability of the interface should not depend on whether inline
assembly is available or not, but rather on the CPU architecture.In case no inline assembly is available, false is returned for
everything. (user: js, size: 4958) [annotate] [blame] [check-ins using]
To Artifact [5abab9f67b]:
- File src/OFSystemInfo.h — part of check-in [2ba8ec1bf1] at 2015-11-02 21:49:33 on branch trunk — Add +[OFSystemInfo supportsAltiVec] (user: js, size: 5227) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
180 181 182 183 184 185 186 187 188 189 | * * @note This method is only available on x86 and x86_64. * * @return Whether the CPU supports AVX2 */ + (bool)supportsAVX2; #endif @end OF_ASSUME_NONNULL_END | > > > > > > > > > > > | 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 | * * @note This method is only available on x86 and x86_64. * * @return Whether the CPU supports AVX2 */ + (bool)supportsAVX2; #endif #if defined(OF_POWERPC) || defined(OF_POWERPC64) /*! * @brief Returns whether the CPU and OS support AltiVec. * * @note This method is only available on PowerPC and PowerPC64. * * @return Whether the CPU and OS support AltiVec */ + (bool)supportsAltiVec; #endif @end OF_ASSUME_NONNULL_END |