Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3dbdf5b73ed75831e2df6c9280b15ec8152b0b07
Ticket: 1783544fffffffffffffffffffffffffffffffff
TclIsNaN may get "optimized away"
User & Date: kot on 2007-09-10 22:55:27
Changes

  1. icomment:
    Logged In: YES 
    user_id=173641
    Originator: YES
    
    AFAIK, isnan and isinf are both _the_ standard predicates. The current implementation of each is a hack, which may be needed on some platforms lagging behind. The "auto-foo" may be needed for _those_, not the other way around...
    
    As for -fsimpleX -- I tried it in different ways, including the explicit -fsimple1. It did not help. The d != d is, apparently, optimized away as always false long before the nature of the d (being a double) is examined.
    
    I'm aware of the possibility of IEEE 754 non-compliance, but the all of the tests succeed here -- after applying the isnan() patch.
    
    
  2. login: "kot"
  3. mimetype: "text/plain"
  4. username: "kot"