-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
flutter/engine
#52001Labels
c: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Fluttere: impellerImpeller rendering backend issues and features requestsImpeller rendering backend issues and features requestsengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.r: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-engineOwned by Engine teamOwned by Engine team
Description
The NumberNear function currently just uses a fixed offset to test accuracy of floating point results, but this practice can produce inconsistent results because of the variable precision of IEEE representations. The std namespace provides floating point measurement functions that can be used to test single-bit precision changes to IEEE numbers. In particular std::nexttoward can be used to try to nudge 2 numbers towards each other, judging them equal if it takes less than some predetermined (kMaxULP?) number of nudges for them to match...
Metadata
Metadata
Assignees
Labels
c: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Fluttere: impellerImpeller rendering backend issues and features requestsImpeller rendering backend issues and features requestsengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.r: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-engineOwned by Engine teamOwned by Engine team