[1/14,x86_64] Vector math functions (vector cos)

Message ID CAMXFM3tRHXNea_7aynduBVBxPT5Vjw3C1rC1AUf65GrLzB6HYg@mail.gmail.com
State Committed
Headers

Commit Message

Andrew Senkevich May 27, 2015, 10:40 a.m. UTC
  One inconsistency was found in this patch (in _ZGVdN4v_cos
implementation), here is diff for fix:

 +2:      leaq    _ZGVdN4v_cos_sse_wrapper(%rip), %rax


--
WBR,
Andrew
  

Patch

diff --git a/0001-x86-64-vector-cos.patch b/0001-x86-64-vector-cos.patch_fixed
index b6d29fe..62fbc2b 100755
--- a/0001-x86-64-vector-cos.patch
+++ b/0001-x86-64-vector-cos.patch_fixed
@@ -435,7 +435,7 @@  index 0000000..b1725f7
 +        jne     1f
 +        call    __init_cpu_features
 +1:      leaq    _ZGVdN4v_cos_avx2(%rip), %rax
-+        testl   $bit_AVX2, __cpu_features+CPUID_OFFSET+index_AVX2(%rip)
++        testl   $bit_AVX2_Usable,
__cpu_features+FEATURE_OFFSET+index_AVX2_Usable(%rip)
 +        jz      2f
 +        ret