I pushed changes to master to improve the calculation accuracy and
reproducibility of makehyper.

The changes mainly focus on the following two points:
 - Changed the iterative calculations in makehyper from float to double.
 - Built only makehyper without -ffast-math.

Probabilities, equities, differences between iterations, and the
convergence threshold are now handled using double precision.

Since the EvalOver() API remains as float, its result is temporarily
received as a float, converted to double, and subsequent iterative
calculations are performed in double. Therefore, existing APIs and the
24-bit file format of the hypergammon DB remain unchanged.

In addition, while gnubg as a whole continues to use -ffast-math as
before, we have now made it so that -fno-fast-math is specified
afterwards for makehyper.

Since makehyper generates the database through iterative calculations,
I believe it is more appropriate to prioritize floating-point arithmetic
stability over regular execution speed. Along with transitioning to
double precision, I hope that a sufficiently converged and verified
database can be used as a reproducible fixed artifact, and potentially
as an officially distributed database in the future.

Best regards,
-- 
TAKAHASHI Kaoru

Reply via email to