C version of Kahan's SRTEST program available
Dan Nelsen
uunet!qedinc.com!dhn
Sat Aug 19 12:06:16 PDT 1995
Prof. Kahan's divide test program SRTEST, ported to C, is now available on
QED's web page http://www.qedinc.com/ under the "Software etc." link. The
README file is included below.
I would be interested in hearing how quickly this version of SRTEST fails on
a buggy Pentium (command line options for Pentium: srtest 5 2 1 1).
________________________________________________________________________
Unpacking instructions:
1. gunzip srtest.tar.gz (gnu version of uncompress)
2. tar xvf srtest.tar
3. follow the compile instructions in the README file
________________________________________________________________________
README file:
DOCUMENTATION:
Complete documentation for the algorithm this program uses can be downloaded
from http://http.cs.berkeley.edu/~wkahan
DIFFERENCES:
This version uses 64-bit IEEE dbl vs. 80-bit IEEE extended in the original.
This version prints its output in a different form than the original FORTRAN
version. Also, this version will exit once a miscompare is detected--the
original version would continue running and keep track of which miscompare
had the greatest error.
PORTABILITY:
srtest.c is somewhat portable in that it should run without modification
on big-endian or little-endian systems, with a default (int) size of 32-bits.
It has been tested on Sun and SGI workstations, and a 486 pc running Linux.
This program was developed using gcc. Therefore, compiling with any other
compiler may require minor modifications (changing 64-bit constants from 0x0LL
to 0x0, etc.).
COMPILE INSTRUCTIONS:
To compile for Intel x86:
gcc -Dx86 -O -o srtest srtest.c -lm
To compile for other systems:
gcc -O -o srtest srtest.c -lm
________________________________________________________________________
Daniel H. Nelsen email: dhnaqedinc.com
Quantum Effect Design WWW: http://www.qedinc.com/
Santa Clara, CA
________________________________________________________________________
More information about the Numeric-interest
mailing list