diff options
author | Chris Blume <cblume@chromium.org> | 2019-04-18 02:20:16 -0700 |
---|---|---|
committer | Chris Blume <cblume@chromium.org> | 2019-04-18 02:20:16 -0700 |
commit | 63a7301842df83c22ba3e9022ec6e1b84c8d41a9 (patch) | |
tree | 885a32b59b2c64441801ee912a9ac5e93ef664d1 /simd/x86_64 | |
parent | bce751521a42889e1cd3988926c6fe0d36c44ca5 (diff) | |
download | libjpeg-turbo-63a7301842df83c22ba3e9022ec6e1b84c8d41a9.tar.gz |
Pull comments from upstream
When the CPUID maxval fix landed, I didn't notice that the comments had
changed. The files landed upstream are slightly different from the files
in Chromium.
This CL pulls those files from upstream to reduce divergance.
Bug:922430
Change-Id: I1674b47a31024bac0d2f32b63ec9bf07aa32c0d3
Diffstat (limited to 'simd/x86_64')
-rw-r--r-- | simd/x86_64/jsimdcpu.asm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/simd/x86_64/jsimdcpu.asm b/simd/x86_64/jsimdcpu.asm index 224f3c69..a905282a 100644 --- a/simd/x86_64/jsimdcpu.asm +++ b/simd/x86_64/jsimdcpu.asm @@ -38,16 +38,16 @@ EXTN(jpeg_simd_cpu_support): xor rdi, rdi ; simd support flag - ; Assume SSE & SSE2 support in all x86-64 processors + ; Assume that all x86-64 processors support SSE & SSE2 instructions or rdi, JSIMD_SSE2 or rdi, JSIMD_SSE - ; Check maximum supported CPUID leaf + ; Check whether CPUID leaf 07H is supported + ; (leaf 07H is used to check for AVX2 instruction support) mov rax, 0 cpuid - cmp rax, 7 ; Exit if the maximum leaf < AVX2's - ; leaf - jl short .return + cmp rax, 7 + jl short .return ; Maximum leaf < 07H ; Check for AVX2 instruction support mov rax, 7 |