Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3758dd02c59b5381125d2203cc12bd6757907159a7af817525454ab8c1cb4a57
Ticket: 713653b951c625ef974f5f06b2e96634ca5fb1f9
Floating point precision problems on x86 musl
User & Date: rubicon on 2022-07-13 14:35:50
Changes

  1. 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.
    
    I would appreciate it if someone could look into the issue, and see if those i386-specific macros are still needed on musl libc systems, or if the fix should be made elsewhere.
    
    I will try to attach the output from Tcllib's math tests.
    
    Thank you.
    
  2. login: "rubicon"
  3. mimetype: "text/plain"