push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
}:
stdenv.mkDerivation rec {
pname = "Vc";
version = "0.7.5";
src = fetchFromGitHub {
owner = "VcDevel";
repo = "Vc";
rev = version;
sha256 = "190s4r2n3jsivl4j2m288j3rqmgjj6gl308hi9mzwyhcfn17q8br";
};
# Avoid requesting an unreasonable intrinsic
patches = lib.optional stdenv.cc.isClang ./vc_0_7_clang_fix.patch;
nativeBuildInputs = [ cmake ];
postPatch = ''
sed -i '/OptimizeForArchitecture()/d' cmake/VcMacros.cmake
sed -i '/AutodetectHostArchitecture()/d' print_target_architecture.cmake
'';
meta = with lib; {
description = "Library for multiprecision complex arithmetic with exact rounding";
homepage = "https://github.com/VcDevel/Vc";
license = licenses.bsd3;
platforms = platforms.all;
maintainers = [ ];
# never built on aarch64-darwin since first introduction in nixpkgs
broken =
(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64)
|| (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64);
};
}

View File

@@ -0,0 +1,33 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
}:
stdenv.mkDerivation rec {
pname = "Vc";
version = "1.4.5";
src = fetchFromGitHub {
owner = "VcDevel";
repo = "Vc";
rev = version;
sha256 = "sha256-A2qUzjXv50unFcoZp2nRVinkph+CoHyiU7AgOphDphM=";
};
nativeBuildInputs = [ cmake ];
postPatch = ''
sed -i '/OptimizeForArchitecture()/d' cmake/VcMacros.cmake
sed -i '/AutodetectHostArchitecture()/d' print_target_architecture.cmake
'';
meta = with lib; {
description = "Library for multiprecision complex arithmetic with exact rounding";
homepage = "https://github.com/VcDevel/Vc";
license = licenses.bsd3;
platforms = platforms.all;
maintainers = [ ];
};
}

View File

@@ -0,0 +1,28 @@
diff -ur a/sse/intrinsics.h b/sse/intrinsics.h
--- a/sse/intrinsics.h 2021-11-12 22:09:50.000000000 -0500
+++ b/sse/intrinsics.h 2021-11-12 22:14:08.000000000 -0500
@@ -498,16 +498,6 @@
case 0:
f = _mm_cvtss_f32(v);
break;
-#if defined VC_IMPL_SSE4_1 && !defined VC_MSVC
- default:
-#ifdef VC_GCC
- f = __builtin_ia32_vec_ext_v4sf(static_cast<__v4sf>(v), (i));
-#else
- // MSVC fails to compile this because it can't optimize i to an immediate
- _MM_EXTRACT_FLOAT(f, v, i);
-#endif
- break;
-#else
case 1:
f = _mm_cvtss_f32(_mm_castsi128_ps(_mm_srli_si128(_mm_castps_si128(v), 4)));
break;
@@ -517,7 +507,6 @@
case 3:
f = _mm_cvtss_f32(_mm_castsi128_ps(_mm_srli_si128(_mm_castps_si128(v), 12)));
break;
-#endif
}
return f;
}