Ticket #47973

relaxed ADV_WANT_EQ

오픈 날짜: 2023-05-01 22:10 마지막 업데이트: 2023-05-09 12:43

Reporter:
(Anonymous)
소유자:
Type:
Status:
Closed
Component:
MileStone:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
2

Details

The ADV_WANT_EQ may be too strict by comparing diff to 0.000001 (remember there are int overflows, so values may be huge)

This patch implement relative comparison |x-y| < epsilon * (|x| + |y|) , with epsilon =0.001 which is enough , and works also for big numbers.

Ticket History (3/7 Histories)

2023-05-01 22:10 Updated by: None
  • New Ticket "relaxed ADV_WANT_EQ " created
2023-05-01 22:27 Updated by: alain_bkr
댓글 올리기

see #47901

2023-05-02 12:31 Updated by: cazfi
2023-05-07 11:15 Updated by: cazfi
  • 소유자 Update from (None) to cazfi
  • Resolution Update from None to Accepted
  • Component Update from Server to AI
댓글 올리기

Patch didn't apply cleanly to S3_0. Attached version that does.

2023-05-09 12:43 Updated by: cazfi
  • Status Update from Open to Closed
  • Resolution Update from Accepted to Fixed

Attachment File List

Edit

Please login to add comment to this ticket » Login