Overview
Comment: | Remove +[OFSystemInfo supports{AltiVec,MXU}]
They relied on siglongjmp() from the SIGILL handler, which on some |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
de7e0381278a3549f305a41989780ce6 |
User & Date: | js on 2015-10-18 09:22:17 |
Other Links: | manifest | tags |
Context
2015-10-19
| ||
22:15 | Add platform.h & make platform defines consistent check-in: 1ba08eebc5 user: js tags: trunk | |
2015-10-18
| ||
09:22 | Remove +[OFSystemInfo supports{AltiVec,MXU}] check-in: de7e038127 user: js tags: trunk | |
2015-10-17
| ||
22:50 | Add +[OFSystemInfo supportsMXU] check-in: 7399e9b249 user: js tags: trunk | |
Changes
Modified src/OFSystemInfo.h from [6fc9fba581] to [b1b706eed5].
︙ | |||
180 181 182 183 184 185 186 | 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 |
Modified src/OFSystemInfo.m from [4b19d00e46] to [df1cd50578].
︙ | |||
42 43 44 45 46 47 48 | 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | - - - - - - - - - - - - | #endif #ifdef __HAIKU__ # include <FindDirectory.h> #endif #ifdef __QNX__ # include <sys/syspage.h> #endif |
︙ | |||
103 104 105 106 107 108 109 | 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | : "a"(eax), "c"(ecx) ); return regs; } #endif |
︙ | |||
412 413 414 415 416 417 418 419 | 366 367 368 369 370 371 372 373 374 | - - - - - - - - - - - - - - | return (x86_cpuid(1, 0).ecx & (1 << 28)); } + (bool)supportsAVX2 { return x86_cpuid(0, 0).eax >= 7 && (x86_cpuid(7, 0).ebx & (1 << 5)); } #endif |