Bug 1225 - Improve floating point handling
Summary: Improve floating point handling
Alias: None
Product: PulseView
Classification: Unclassified
Component: Other (show other bugs)
Version: unreleased development snapshot
Hardware: All All
: Normal normal
Target Milestone: ---
Assignee: Nobody
Depends on: 1223
  Show dependency treegraph
Reported: 2018-06-06 22:46 CEST by Uwe Hermann
Modified: 2018-06-06 22:53 CEST (History)
1 user (show)


Note You need to log in before you can comment on or make changes to this bug.
Description Uwe Hermann 2018-06-06 22:46:52 CEST
This is a generic bug for improving various code chunks in PV wrt floating point handling (e.g. comparison).

One specific issue in practice was #1149, but recently another problem occurred with hantek-4032l voltage thresholds (same reason as #1149, a different fix will be needed).

Relevant URLs:
Comment 1 Uwe Hermann 2018-06-06 22:53:13 CEST
The compiler option -Wfloat-equal can be used to find all (or at least most?) issues related to direct floating point comparison via "==". Other FP-related issues in addition to those might exist in the code-base, though.