Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / vc / vc_0_7_clang_fix.patch
blob29ea6f5294906ca3c0de0defa387fe25ff3b907f
1 diff -ur a/sse/intrinsics.h b/sse/intrinsics.h
2 --- a/sse/intrinsics.h 2021-11-12 22:09:50.000000000 -0500
3 +++ b/sse/intrinsics.h 2021-11-12 22:14:08.000000000 -0500
4 @@ -498,16 +498,6 @@
5 case 0:
6 f = _mm_cvtss_f32(v);
7 break;
8 -#if defined VC_IMPL_SSE4_1 && !defined VC_MSVC
9 - default:
10 -#ifdef VC_GCC
11 - f = __builtin_ia32_vec_ext_v4sf(static_cast<__v4sf>(v), (i));
12 -#else
13 - // MSVC fails to compile this because it can't optimize i to an immediate
14 - _MM_EXTRACT_FLOAT(f, v, i);
15 -#endif
16 - break;
17 -#else
18 case 1:
19 f = _mm_cvtss_f32(_mm_castsi128_ps(_mm_srli_si128(_mm_castps_si128(v), 4)));
20 break;
21 @@ -517,7 +507,6 @@
22 case 3:
23 f = _mm_cvtss_f32(_mm_castsi128_ps(_mm_srli_si128(_mm_castps_si128(v), 12)));
24 break;
25 -#endif
27 return f;