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

Andrew Senkevich andrew.n.senkevich@gmail.com
Wed May 27 11:10:00 GMT 2015


One inconsistency was found in this patch (in _ZGVdN4v_cos
implementation), here is diff for fix:

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
 +2:      leaq    _ZGVdN4v_cos_sse_wrapper(%rip), %rax


--
WBR,
Andrew



More information about the Libc-alpha mailing list