Skip to content
Tcl Source Code History Of Ticket 664775ffff
Login

History Of Ticket 664775ffff

Artifacts Associated With Ticket 664775ffff

  1. Ticket change [7341c1a79e] (rid 105014) by dgp on 2003-01-09 00:19:05:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      ==== execute-7.30 Wide int handling in function call FAILED
      ==== Contents of test case:
      
          set x 0x12345687123456
          incr x
          expr {sin($x) == sin(double($x))}
      
      ---- Result was:
      floating-point value too small to represent
      ---- Result should have been (exact matching):
      1
      ---- Test generated error; Return code was: 1
      ---- Return code should have been one of: 0 2
      ==== execute-7.30 FAILED
      
      There are several problems here.
      
      First note that sin(x) == sin (x + 2*pi), so in order to 
      compute the sin() of a value you need to know its
      precision at a scale considerably less than 2*pi.
      
      For large numbers, differences of 2*pi can get lost
      in the low order bits of the floating point rep, or not
      represented at all.  Taking the sin() of such imprecise
      numbers is essentially meaningless.
      
      For this reason, on the SGI platform, for any x > 2^50,
      sin(x) returns 0, and errno is set to ERANGE.
      
      In the test above, x > 2^50.  If all that is needed for
      this
      test is a wide int argument, then replacing x with some
      value less than 2^50, but greater than 2^31 (thus wide)
      should fix the test.
      
      It is unfortunate that the SGI sin() function raises ERANGE
      in this circumstance, I think it would make more sense
      to raise EDOM.  Anyhow, the combination of ERANGE and
      value == 0 gets interpreted by Tcl in TclExprFloatError()
      as a floating point underflow ("floating-point value
      too small
      to represent"), but that's not accurate in this case. 
      Would
      be nice to get a better error message for this.
      
    4. foundin initialized to: "obsolete: 8.4.1"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dgp"
    9. subsystem initialized to: "47. Bytecode Compiler"
    10. title initialized to: "execute-7.30 fails on SGI"
    11. type initialized to: "Bug"
  2. Ticket change [350bcc7b8a] (rid 106853) by dkf on 2003-02-19 21:11:19:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      Really, for the purposes of what the test is testing, we
      could (and, so it seems, should) use log() instead of sin().
      The actual value returned doesn't matter in this case since
      it is just checking explicit vs. implicit wide-to-double
      conversions.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  3. Ticket change [b51bdccec0] (rid 125185) by msofer on 2003-02-19 21:42:42:

    1. closedate changed to: "2003-02-19T14:42:42"
    2. closer changed to: "msofer"
    3. resolution changed to: "Fixed"
    4. status changed to: "Closed"