Overview
| Artifact ID: | 575224554f5d52552616a63c7f8e295635bb1ec1820c43268cbc422963b4dd93 |
|---|---|
| Ticket: | 713653b951c625ef974f5f06b2e96634ca5fb1f9
Floating point precision problems on x86 musl |
| User & Date: | rubicon on 2022-07-13 15:19:46 |
Changes
- comment changed to:
Hello, sorry if this isn't the correct place to report this. While running Tcllib tests with Tcl 8.6.12 on 32-bit x86 Alpine Linux, which uses musl libc, I ran into a problem with some math tests failing. I proceeded to try running the same tests on previous versions of Tcl 8.6, and found that the tests pass on 8.6.10 but fail on 8.6.11. I think the problem started with https://core.tcl-lang.org/tcl/info/5cb42f70ad0e65ba , and I managed to suppress the problem by disabling the special i386 TCL_IEEE_DOUBLE_ROUNDING and TCL_DEFAULT_DOUBLE_ROUNDING macros. However, not being familiar with low-level programming, I'm not sure if this is the correct way of fixing the problem, and indeed it causes Tcl's expr tests to fail instead: https://core.tcl-lang.org/tcl/artifact/5ad80ae6f0ae48d7 . I have attached the output from Tcllib's math tests, and Tcl's expr-old and format tests. I would appreciate it if someone could look into this issue. Thank you.
- login: "rubicon"
- mimetype: "text/plain"