Skip to content
Tcl Source Code View Ticket
Login

View Ticket

denormal failures on MIPS

Closed / Fixed2819200fffffffffffffffffffffffffffffffffCreated 17 years agoUpdated 17 years ago
Descriptionplain2009-07-09 19:45:15
According to the test suite, Tcl expects
gradual underflow in its floating point
calculations and in the operations that
underly parsing and string rep generation
for doubles.

The MIPS FPU in default setting flushes
all denormals to zero, causing many
test suite failures.

The set_fpc_csr() routine declared
in <sys/fpu.h> (on IRIX systems only?)
lets us control this setting.

Attached patch revises Tcl's initialization
to establish the setting it needs.

POTENTIAL INCOMPAT with embedding
programs that need the opposite setting
(do they exist?).
dgpplain2009-07-10 02:45:15
File Added - 334319: mipsdenorm.patch
dgp Ticket [2819200fff]: 1 change [History diff]2009-07-10 02:45:48
dgpplain2009-07-17 04:22:37
allow_comments - 1

fixed for 8.5.8/8.6b2
Log in (anonymous is fine) to add a comment.

Attachments: