pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/games/stockfish
Module Name: pkgsrc
Committed By: tnn
Date: Mon Apr 25 15:24:31 UTC 2022
Modified Files:
pkgsrc/games/stockfish: distinfo
pkgsrc/games/stockfish/patches: patch-pawns.cpp
Added Files:
pkgsrc/games/stockfish/patches: patch-search.cpp
Log Message:
stockfish: avoid ambiguous math functions
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 pkgsrc/games/stockfish/distinfo
cvs rdiff -u -r1.1 -r1.2 pkgsrc/games/stockfish/patches/patch-pawns.cpp
cvs rdiff -u -r0 -r1.1 pkgsrc/games/stockfish/patches/patch-search.cpp
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/games/stockfish/distinfo
diff -u pkgsrc/games/stockfish/distinfo:1.4 pkgsrc/games/stockfish/distinfo:1.5
--- pkgsrc/games/stockfish/distinfo:1.4 Tue Oct 26 10:44:26 2021
+++ pkgsrc/games/stockfish/distinfo Mon Apr 25 15:24:31 2022
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.4 2021/10/26 10:44:26 nia Exp $
+$NetBSD: distinfo,v 1.5 2022/04/25 15:24:31 tnn Exp $
BLAKE2s (stockfish-9-src.zip) = 2111e5b15cb1cfa80eb6608e9f0b1b230f0d43a64743911113d7bb8c8558b95c
SHA512 (stockfish-9-src.zip) = 47b5dfea9e015dd68e33c8b1a131ed83710e4e5d67abe0c278a423f2940b07c7a5d661ce27915257ae3dad83fc2bb8e50d3d28bfa11a7c4cdf396d0378cd80f8
Size (stockfish-9-src.zip) = 171925 bytes
-SHA1 (patch-pawns.cpp) = d643c725310a723151e2af3d5dd6eaae0dddf105
+SHA1 (patch-pawns.cpp) = 47a718339211576dfac414bc0ef3bcaad1f41ef8
+SHA1 (patch-search.cpp) = e54b0feab40a13d3dcdcd1a4a66bac54109ddf78
Index: pkgsrc/games/stockfish/patches/patch-pawns.cpp
diff -u pkgsrc/games/stockfish/patches/patch-pawns.cpp:1.1 pkgsrc/games/stockfish/patches/patch-pawns.cpp:1.2
--- pkgsrc/games/stockfish/patches/patch-pawns.cpp:1.1 Fri Dec 20 00:00:55 2019
+++ pkgsrc/games/stockfish/patches/patch-pawns.cpp Mon Apr 25 15:24:31 2022
@@ -1,4 +1,7 @@
-$NetBSD: patch-pawns.cpp,v 1.1 2019/12/20 00:00:55 joerg Exp $
+$NetBSD: patch-pawns.cpp,v 1.2 2022/04/25 15:24:31 tnn Exp $
+
+date: 2019-12-20 01:00:55 +0100; author: joerg; state: Exp; commitid: QhSAW31NXzINnnPB;
+Fix popcount conflict on NetBSD. Avoid LTO and 32bit binaries on NetBSD.
--- pawns.cpp.orig 2019-12-19 22:50:55.102229747 +0000
+++ pawns.cpp
Added files:
Index: pkgsrc/games/stockfish/patches/patch-search.cpp
diff -u /dev/null pkgsrc/games/stockfish/patches/patch-search.cpp:1.1
--- /dev/null Mon Apr 25 15:24:31 2022
+++ pkgsrc/games/stockfish/patches/patch-search.cpp Mon Apr 25 15:24:31 2022
@@ -0,0 +1,15 @@
+$NetBSD: patch-search.cpp,v 1.1 2022/04/25 15:24:31 tnn Exp $
+
+avoid ambiguous math functions
+
+--- search.cpp.orig 2018-01-31 10:41:09.000000000 +0000
++++ search.cpp
+@@ -146,7 +146,7 @@ void Search::init() {
+ for (int d = 1; d < 64; ++d)
+ for (int mc = 1; mc < 64; ++mc)
+ {
+- double r = log(d) * log(mc) / 1.95;
++ double r = std::log(d) * std::log(mc) / 1.95;
+
+ Reductions[NonPV][imp][d][mc] = int(std::round(r));
+ Reductions[PV][imp][d][mc] = std::max(Reductions[NonPV][imp][d][mc] - 1, 0);
Home |
Main Index |
Thread Index |
Old Index