Ticket #87 (closed defect: wontfix)

Opened 6 years ago

Last modified 6 years ago

floating point equality test

Reported by: alain Owned by: gnugo
Priority: normal Milestone:
Component: source Version:
Severity: trivial Keywords:
Cc: patch: no

Description (last modified by alain) (diff)

GNU Go 3.7.8 compiled with icc9.0 -w2 (more verbose) gives this remark: floating-point equality and inequality comparisons are unreliable

The list of occurences is in attachement

Attachments

float-comparison Download (7.8 KB) - added by alain 6 years ago.

Regression Results

Attachment Rev. PASS FAIL Nodes Status

Change History

comment:1 Changed 6 years ago by alain

  • Description modified (diff)

genmove.c(685): remark #1572: floating-point equality and inequality comparisons are unreliable

if (white_score == black_score)

Changed 6 years ago by alain

comment:2 Changed 6 years ago by alain

  • Description modified (diff)

comment:3 Changed 6 years ago by gunnar

Well, these warnings are not terribly useful. The compiler is correct in principle that floating point comparisons are unreliable in a platform dependency sense, but it has no idea whether each specific case is problematic. We have had problems with this, and we probably still have, but the only feasible way to avoid all the warnings is to stop using floating point numbers at all, which would simply be too impractical.

comment:4 Changed 6 years ago by gunnar

  • Status changed from new to closed
  • Resolution set to wontfix
Note: See TracTickets for help on using tickets.