待辦事項 #47973

relaxed ADV_WANT_EQ

啟用日期: 2023-05-01 22:10 最後更新: 2023-05-09 12:43

回報者:
(匿名)
負責人:
類型:
狀態:
關閉
元件:
里程碑:
優先權:
5 - 中
嚴重程度:
5 - 中
處理結果:
修正
檔案:
2

細節

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 (無) to cazfi
  • 處理結果 Update from to Accepted
  • 元件 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
  • 狀態 Update from 開啟 to 關閉
  • 處理結果 Update from Accepted to 修正

Attachment File List

編輯

Please login to add comment to this ticket » 登入