Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d061204560a408e7691281c504b95bd876a6dec8
Ticket: 1468858fffffffffffffffffffffffffffffffff
format bugs on P4's and AMD64's
User & Date: kingbrian on 2006-04-11 21:13:00
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Trying to do some basic calculations with expr and
    format is barfing on the first run and working on
    subsequent on a P4:
    tcl>set prefix 0x03000000
    tcl>set mask 0xff000000
    tcl>set j [expr $prefix | ~$mask+1]
    tcl>set last   [format  0x%08x $j]
    Error:
    tcl>set last   [format  0x%08x $j]
    tcl>set last   [format  0x%08x $j]
    tcl>set last   [format  0x%08x $j]
    
    This is on an AMD64:
    tcl>set prefix 0x03000000
    tcl>set mask 0xff000000
    tcl>set j [expr $prefix | ~$mask+1]
    tcl>set last   [format  0x%08x $j]
    tcl>puts $last
    0xffffffff03000000
    
    
    This is on a P3
    tcl>set prefix 0x03000000
    tcl>set mask 0xff000000
    tcl>set j [expr $prefix | ~$mask+1]
    tcl>set last   [format  0x%08x $j]
    Error:
    tcl>set last   [format  0x%08x $j]
    tcl>puts $last
    0x03000000
    
    This is with default redhat packages.
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "kingbrian"
  9. subsystem changed to: "None"
  10. title changed to: "format bugs on P4's and AMD64's"
  11. type changed to: "Bug"