]> granicus.if.org Git - libjpeg-turbo/commit
AVX2: Verify O/S support for AVX2 before enabling
authorDRC <information@libjpeg-turbo.org>
Tue, 12 Jul 2016 01:21:46 +0000 (20:21 -0500)
committerDRC <information@libjpeg-turbo.org>
Tue, 12 Jul 2016 01:26:34 +0000 (20:26 -0500)
commit3dcb85ee9a9ced33842c032b01a47d567e5ab5ec
tree93e814729926e0ccf90e4970ba8cef7a63d33071
parent1be87b627393ddb362edd395625c3675e8583d9d
AVX2: Verify O/S support for AVX2 before enabling

This fixes crashes that would occur when attempting to use
libjpeg-turbo's AVX2 extensions on older O/S's (such as Windows XP or
RHEL 5.)  Even if the CPU supports AVX2, the O/S has to also support
saving/restoring YMM registers when switching contexts.
simd/jsimdcpu-64.asm
simd/jsimdcpu.asm