mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
Release calc version 2.11.0t9.4.1
This commit is contained in:
2
BUGS
2
BUGS
@@ -24,7 +24,7 @@ To be sure that your version of calc is up to date, check out:
|
|||||||
|
|
||||||
The calc web site is located at:
|
The calc web site is located at:
|
||||||
|
|
||||||
http://reality.sgi.com/chongo/tech/comp/calc
|
http://reality.sgi.com/chongo/tech/comp/calc/index.html
|
||||||
|
|
||||||
=-=
|
=-=
|
||||||
|
|
||||||
|
12
CHANGES
12
CHANGES
@@ -144,6 +144,16 @@ Following is the change from calc version 2.11.0t8.9.1 to date:
|
|||||||
by default is /usr/local/include. Include files previously installed
|
by default is /usr/local/include. Include files previously installed
|
||||||
directly under ${LIBDIR} will be removed.
|
directly under ${LIBDIR} will be removed.
|
||||||
|
|
||||||
|
Added the piforever() funcion to lib/pi.cal. It was written by
|
||||||
|
Klaus Alexander Seistrup <klaus@seistrup.dk> and was inspired by
|
||||||
|
an algorithm conceived by Lambert Meertens. (See also the ABC
|
||||||
|
Programmer's Handbook, by Geurts, Meertens & Pemberton, published
|
||||||
|
by Prentice-Hall (UK) Ltd., 1990.) The piforever() funcion prints
|
||||||
|
digits of pi for as long as your memory and system uptime allows. :-)
|
||||||
|
|
||||||
|
Fixed the URLs found thruout the source and documentation which did
|
||||||
|
not and in /, but should for performance and server load reasons.
|
||||||
|
|
||||||
|
|
||||||
Following is the change from calc version 2.11.0t8 to 2.11.0t8.9:
|
Following is the change from calc version 2.11.0t8 to 2.11.0t8.9:
|
||||||
|
|
||||||
@@ -444,7 +454,7 @@ Following is the change from calc version 2.11.0t7 to 2.11.0t7.5:
|
|||||||
|
|
||||||
The main calc URL is now:
|
The main calc URL is now:
|
||||||
|
|
||||||
http://reality.sgi.com/chongo/tech/comp/calc
|
http://reality.sgi.com/chongo/tech/comp/calc/
|
||||||
|
|
||||||
Misc calc man page fixes.
|
Misc calc man page fixes.
|
||||||
|
|
||||||
|
3
Makefile
3
Makefile
@@ -746,8 +746,6 @@ CC= ${PURIFY} ${LCC}
|
|||||||
# Warning: Some HP-UX optimizers are brain-damaged. If 'make check' fails use:
|
# Warning: Some HP-UX optimizers are brain-damaged. If 'make check' fails use:
|
||||||
# DEBUG= -g
|
# DEBUG= -g
|
||||||
#
|
#
|
||||||
# On a systems call the C compiler 'cchp' instead of 'cc'.
|
|
||||||
#
|
|
||||||
#CCWARN=
|
#CCWARN=
|
||||||
#CCOPT= ${DEBUG} ${NO_SHARED}
|
#CCOPT= ${DEBUG} ${NO_SHARED}
|
||||||
#CCMISC= +e
|
#CCMISC= +e
|
||||||
@@ -760,7 +758,6 @@ CC= ${PURIFY} ${LCC}
|
|||||||
#ILDFLAGS=
|
#ILDFLAGS=
|
||||||
#
|
#
|
||||||
#LCC= cc
|
#LCC= cc
|
||||||
#LCC= cchp
|
|
||||||
#CC= ${PURIFY} ${LCC}
|
#CC= ${PURIFY} ${LCC}
|
||||||
#
|
#
|
||||||
###
|
###
|
||||||
|
2
README
2
README
@@ -87,4 +87,4 @@ your full name.
|
|||||||
|
|
||||||
The calc web site is located at:
|
The calc web site is located at:
|
||||||
|
|
||||||
http://reality.sgi.com/chongo/tech/comp/calc
|
http://reality.sgi.com/chongo/tech/comp/calc/
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
* This file was written by:
|
* This file was written by:
|
||||||
*
|
*
|
||||||
* Landon Curt Noll
|
* Landon Curt Noll
|
||||||
* http://reality.sgi.com/chongo
|
* http://reality.sgi.com/chongo/
|
||||||
*
|
*
|
||||||
* chongo <was here> /\../\
|
* chongo <was here> /\../\
|
||||||
*
|
*
|
||||||
|
2
blkcpy.c
2
blkcpy.c
@@ -4,7 +4,7 @@
|
|||||||
* provided that this copyright notice remains intact.
|
* provided that this copyright notice remains intact.
|
||||||
*
|
*
|
||||||
* By: Ernest Bowen and Landon Curt Noll
|
* By: Ernest Bowen and Landon Curt Noll
|
||||||
* ernie@neumann.une.edu.au and http://reality.sgi.com/chongo
|
* ernie@neumann.une.edu.au and http://reality.sgi.com/chongo/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
2
block.c
2
block.c
@@ -28,7 +28,7 @@
|
|||||||
* Happy bit twiddling,
|
* Happy bit twiddling,
|
||||||
*
|
*
|
||||||
* Landon Curt Noll
|
* Landon Curt Noll
|
||||||
* http://reality.sgi.com/chongo
|
* http://reality.sgi.com/chongo/
|
||||||
*
|
*
|
||||||
* chongo <was here> /\../\
|
* chongo <was here> /\../\
|
||||||
*/
|
*/
|
||||||
|
2
block.h
2
block.h
@@ -28,7 +28,7 @@
|
|||||||
* Happy bit twiddling,
|
* Happy bit twiddling,
|
||||||
*
|
*
|
||||||
* Landon Curt Noll
|
* Landon Curt Noll
|
||||||
* http://reality.sgi.com/chongo
|
* http://reality.sgi.com/chongo/
|
||||||
*
|
*
|
||||||
* chongo <was here> /\../\
|
* chongo <was here> /\../\
|
||||||
*/
|
*/
|
||||||
|
2
calc.man
2
calc.man
@@ -618,7 +618,7 @@ Landon Noll maintains the the
|
|||||||
web site is located at:
|
web site is located at:
|
||||||
.sp
|
.sp
|
||||||
.in +0.5i
|
.in +0.5i
|
||||||
http://reality.sgi.com/chongo/tech/comp/calc
|
http://reality.sgi.com/chongo/tech/comp/calc/
|
||||||
.in -0.5i
|
.in -0.5i
|
||||||
.sp
|
.sp
|
||||||
One may join the
|
One may join the
|
||||||
|
2
config.h
2
config.h
@@ -29,7 +29,7 @@
|
|||||||
* Happy bit twiddling,
|
* Happy bit twiddling,
|
||||||
*
|
*
|
||||||
* Landon Curt Noll
|
* Landon Curt Noll
|
||||||
* http://reality.sgi.com/chongo
|
* http://reality.sgi.com/chongo/
|
||||||
*
|
*
|
||||||
* chongo <was here> /\../\
|
* chongo <was here> /\../\
|
||||||
*/
|
*/
|
||||||
|
2
custom.c
2
custom.c
@@ -25,7 +25,7 @@
|
|||||||
* Happy bit twiddling,
|
* Happy bit twiddling,
|
||||||
*
|
*
|
||||||
* Landon Curt Noll
|
* Landon Curt Noll
|
||||||
* http://reality.sgi.com/chongo
|
* http://reality.sgi.com/chongo/
|
||||||
*
|
*
|
||||||
* chongo <was here> /\../\
|
* chongo <was here> /\../\
|
||||||
*/
|
*/
|
||||||
|
2
custom.h
2
custom.h
@@ -29,7 +29,7 @@
|
|||||||
* Happy bit twiddling,
|
* Happy bit twiddling,
|
||||||
*
|
*
|
||||||
* Landon Curt Noll
|
* Landon Curt Noll
|
||||||
* http://reality.sgi.com/chongo
|
* http://reality.sgi.com/chongo/
|
||||||
*
|
*
|
||||||
* chongo <was here> /\../\
|
* chongo <was here> /\../\
|
||||||
*/
|
*/
|
||||||
|
@@ -19,7 +19,7 @@
|
|||||||
# OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
# OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
# PERFORMANCE OF THIS SOFTWARE.
|
# PERFORMANCE OF THIS SOFTWARE.
|
||||||
#
|
#
|
||||||
# chongo was here /\../\ http://reality.sgi.com/chongo
|
# chongo was here /\../\ http://reality.sgi.com/chongo/
|
||||||
|
|
||||||
The following custom calc library files are provided because they serve
|
The following custom calc library files are provided because they serve
|
||||||
as examples of how use the custom interface. The custom interface
|
as examples of how use the custom interface. The custom interface
|
||||||
|
@@ -27,7 +27,7 @@
|
|||||||
# Happy bit twiddling,
|
# Happy bit twiddling,
|
||||||
#
|
#
|
||||||
# Landon Curt Noll
|
# Landon Curt Noll
|
||||||
# http://reality.sgi.com/chongo
|
# http://reality.sgi.com/chongo/
|
||||||
#
|
#
|
||||||
# chongo <was here> /\../\
|
# chongo <was here> /\../\
|
||||||
|
|
||||||
|
@@ -10,7 +10,7 @@
|
|||||||
* OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
* OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
*
|
*
|
||||||
* chongo was here /\../\ http://reality.sgi.com/chongo
|
* chongo was here /\../\ http://reality.sgi.com/chongo/
|
||||||
*/
|
*/
|
||||||
/*
|
/*
|
||||||
* argv - print information about various args
|
* argv - print information about various args
|
||||||
|
@@ -16,7 +16,7 @@
|
|||||||
* Happy bit twiddling,
|
* Happy bit twiddling,
|
||||||
*
|
*
|
||||||
* Landon Curt Noll
|
* Landon Curt Noll
|
||||||
* http://reality.sgi.com/chongo
|
* http://reality.sgi.com/chongo/
|
||||||
*
|
*
|
||||||
* chongo <was here> /\../\
|
* chongo <was here> /\../\
|
||||||
*/
|
*/
|
||||||
|
@@ -16,7 +16,7 @@
|
|||||||
* Happy bit twiddling,
|
* Happy bit twiddling,
|
||||||
*
|
*
|
||||||
* Landon Curt Noll
|
* Landon Curt Noll
|
||||||
* http://reality.sgi.com/chongo
|
* http://reality.sgi.com/chongo/
|
||||||
*
|
*
|
||||||
* chongo <was here> /\../\
|
* chongo <was here> /\../\
|
||||||
*/
|
*/
|
||||||
|
@@ -16,7 +16,7 @@
|
|||||||
* Happy bit twiddling,
|
* Happy bit twiddling,
|
||||||
*
|
*
|
||||||
* Landon Curt Noll
|
* Landon Curt Noll
|
||||||
* http://reality.sgi.com/chongo
|
* http://reality.sgi.com/chongo/
|
||||||
*
|
*
|
||||||
* chongo <was here> /\../\
|
* chongo <was here> /\../\
|
||||||
*/
|
*/
|
||||||
|
@@ -16,7 +16,7 @@
|
|||||||
* Happy bit twiddling,
|
* Happy bit twiddling,
|
||||||
*
|
*
|
||||||
* Landon Curt Noll
|
* Landon Curt Noll
|
||||||
* http://reality.sgi.com/chongo
|
* http://reality.sgi.com/chongo/
|
||||||
*
|
*
|
||||||
* chongo <was here> /\../\
|
* chongo <was here> /\../\
|
||||||
*/
|
*/
|
||||||
|
@@ -25,7 +25,7 @@
|
|||||||
* Happy bit twiddling,
|
* Happy bit twiddling,
|
||||||
*
|
*
|
||||||
* Landon Curt Noll
|
* Landon Curt Noll
|
||||||
* http://reality.sgi.com/chongo
|
* http://reality.sgi.com/chongo/
|
||||||
*
|
*
|
||||||
* chongo <was here> /\../\
|
* chongo <was here> /\../\
|
||||||
*/
|
*/
|
||||||
|
@@ -10,7 +10,7 @@
|
|||||||
* OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
* OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
*
|
*
|
||||||
* chongo was here /\../\ http://reality.sgi.com/chongo
|
* chongo was here /\../\ http://reality.sgi.com/chongo/
|
||||||
*/
|
*/
|
||||||
/*
|
/*
|
||||||
* halflen - determine the length of numeric value in HALFs
|
* halflen - determine the length of numeric value in HALFs
|
||||||
|
@@ -11,6 +11,6 @@ Where to get the the latest versions of calc
|
|||||||
for information on how to obtain up a recent version of calc.
|
for information on how to obtain up a recent version of calc.
|
||||||
|
|
||||||
Landon Curt Noll
|
Landon Curt Noll
|
||||||
http://reality.sgi.com/chongo
|
http://reality.sgi.com/chongo/
|
||||||
|
|
||||||
chongo <was here> /\../\
|
chongo <was here> /\../\
|
||||||
|
@@ -58,6 +58,6 @@ One may join the calc testing group by sending a request to:
|
|||||||
is your full name.
|
is your full name.
|
||||||
|
|
||||||
Landon Curt Noll
|
Landon Curt Noll
|
||||||
http://reality.sgi.com/chongo
|
http://reality.sgi.com/chongo/
|
||||||
|
|
||||||
chongo <was here> /\../\
|
chongo <was here> /\../\
|
||||||
|
@@ -15,12 +15,12 @@ DESCRIPTION
|
|||||||
The basis of this hash algorithm was taken from an idea sent
|
The basis of this hash algorithm was taken from an idea sent
|
||||||
as reviewer comments to the IEEE POSIX P1003.2 committee by:
|
as reviewer comments to the IEEE POSIX P1003.2 committee by:
|
||||||
|
|
||||||
Phong Vo (http://www.research.att.com/info/kpv)
|
Phong Vo (http://www.research.att.com/info/kpv/)
|
||||||
Glenn Fowler (http://www.research.att.com/~gsf/)
|
Glenn Fowler (http://www.research.att.com/~gsf/)
|
||||||
|
|
||||||
In a subsequent ballot round:
|
In a subsequent ballot round:
|
||||||
|
|
||||||
Landon Curt Noll (http://reality.sgi.com/chongo)
|
Landon Curt Noll (http://reality.sgi.com/chongo/)
|
||||||
|
|
||||||
improved on their algorithm. Some people tried this hash
|
improved on their algorithm. Some people tried this hash
|
||||||
and found that it worked rather well. In an EMail message
|
and found that it worked rather well. In an EMail message
|
||||||
|
@@ -19,9 +19,9 @@ DESCRIPTION
|
|||||||
is almost certainly non-chaotic. This function is likely not
|
is almost certainly non-chaotic. This function is likely not
|
||||||
suitable for applications (such as cryptographic applications)
|
suitable for applications (such as cryptographic applications)
|
||||||
where the unpredictability of seeds is critical. For such critical
|
where the unpredictability of seeds is critical. For such critical
|
||||||
applications, lavarand should be used. Seed:
|
applications, lavarand should be used. See the URL:
|
||||||
|
|
||||||
http://lavarand.sgi.com
|
http://lavarand.sgi.com/index.html
|
||||||
|
|
||||||
for information about seeding a pseudo-random number generator
|
for information about seeding a pseudo-random number generator
|
||||||
(such as rand() or random()) with the cryptographic hash of the
|
(such as rand() or random()) with the cryptographic hash of the
|
||||||
|
@@ -222,8 +222,7 @@ DESCRIPTION
|
|||||||
The pre-defined Blum moduli and quadratic residues were selected
|
The pre-defined Blum moduli and quadratic residues were selected
|
||||||
by lavarand, a hardware random number generator. See the URL:
|
by lavarand, a hardware random number generator. See the URL:
|
||||||
|
|
||||||
http://lavarand.sgi.com
|
http://lavarand.sgi.com/index.html
|
||||||
XXX - This URL is not available on 17Feb97 ... but will be soon.
|
|
||||||
|
|
||||||
for an explanation of how the lavarand random number generator works.
|
for an explanation of how the lavarand random number generator works.
|
||||||
For more information, see the comments at the top of the calc
|
For more information, see the comments at the top of the calc
|
||||||
|
12
lib/README
12
lib/README
@@ -273,10 +273,18 @@ pell.cal
|
|||||||
pi.cal
|
pi.cal
|
||||||
|
|
||||||
qpi(epsilon)
|
qpi(epsilon)
|
||||||
|
piforever()
|
||||||
|
|
||||||
Calculate pi within the specified epsilon using the quartic convergence
|
The qpi() calculate pi within the specified epsilon using the quartic
|
||||||
iteration.
|
convergence iteration.
|
||||||
|
|
||||||
|
The piforever() prints digits of pi, nicely formatted, for as long
|
||||||
|
as your free memory space and system up time allows.
|
||||||
|
|
||||||
|
The piforever() funcion (written by Klaus Alexander Seistrup
|
||||||
|
<klaus@seistrup.dk>) was inspired by an algorithm conceived by
|
||||||
|
Lambert Meertens. See also the ABC Programmer's Handbook, by Geurts,
|
||||||
|
Meertens & Pemberton, published by Prentice-Hall (UK) Ltd., 1990.
|
||||||
|
|
||||||
pix.cal
|
pix.cal
|
||||||
|
|
||||||
|
@@ -86,7 +86,7 @@
|
|||||||
* i.e., any value that is 301 mod 420.
|
* i.e., any value that is 301 mod 420.
|
||||||
*
|
*
|
||||||
* Written by: Ernest W Bowen <ernie@neumann.une.edu.au>
|
* Written by: Ernest W Bowen <ernie@neumann.une.edu.au>
|
||||||
* Interface by: Landon Curt Noll http://reality.sgi.com/chongo
|
* Interface by: Landon Curt Noll http://reality.sgi.com/chongo/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static defaultmlist = list(2,3,5,7,11,13,17,19); /* The first eight primes */
|
static defaultmlist = list(2,3,5,7,11,13,17,19); /* The first eight primes */
|
||||||
|
@@ -20,7 +20,7 @@
|
|||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
*
|
*
|
||||||
* Landon Curt Noll
|
* Landon Curt Noll
|
||||||
* http://reality.sgi.com/chongo
|
* http://reality.sgi.com/chongo/
|
||||||
*
|
*
|
||||||
* chongo <was here> /\../\
|
* chongo <was here> /\../\
|
||||||
*/
|
*/
|
||||||
|
@@ -20,7 +20,7 @@
|
|||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
*
|
*
|
||||||
* Landon Curt Noll
|
* Landon Curt Noll
|
||||||
* http://reality.sgi.com/chongo
|
* http://reality.sgi.com/chongo/
|
||||||
*
|
*
|
||||||
* chongo <was here> /\../\
|
* chongo <was here> /\../\
|
||||||
*/
|
*/
|
||||||
|
@@ -20,7 +20,7 @@
|
|||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
*
|
*
|
||||||
* Landon Curt Noll
|
* Landon Curt Noll
|
||||||
* http://reality.sgi.com/chongo
|
* http://reality.sgi.com/chongo/
|
||||||
*
|
*
|
||||||
* chongo <was here> /\../\
|
* chongo <was here> /\../\
|
||||||
*/
|
*/
|
||||||
|
@@ -20,7 +20,7 @@
|
|||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
*
|
*
|
||||||
* Landon Curt Noll
|
* Landon Curt Noll
|
||||||
* http://reality.sgi.com/chongo
|
* http://reality.sgi.com/chongo/
|
||||||
*
|
*
|
||||||
* chongo <was here> /\../\
|
* chongo <was here> /\../\
|
||||||
*/
|
*/
|
||||||
|
72
lib/pi.cal
72
lib/pi.cal
@@ -47,3 +47,75 @@ define qpi(epsilon)
|
|||||||
}
|
}
|
||||||
return (bround(1/an, bits));
|
return (bround(1/an, bits));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Print digits of PI forever, neatly formatted, using calc.
|
||||||
|
*
|
||||||
|
* Written by Klaus Alexander Seistrup <klaus@seistrup.dk>
|
||||||
|
* on a dull Friday evening in November 1999.
|
||||||
|
*
|
||||||
|
* Inspired by an algorithm conceived by Lambert Meertens.
|
||||||
|
*
|
||||||
|
* See also the ABC Programmer's Handbook, by Geurts, Meertens & Pemberton,
|
||||||
|
* published by Prentice-Hall (UK) Ltd., 1990.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
define piforever()
|
||||||
|
{
|
||||||
|
local k = 2;
|
||||||
|
local a = 4;
|
||||||
|
local b = 1;
|
||||||
|
local a1 = 12;
|
||||||
|
local b1 = 4;
|
||||||
|
local a2, b2, p, q, d, d1;
|
||||||
|
local stdout = files(1);
|
||||||
|
local first = 1, row = -1, col = 0;
|
||||||
|
|
||||||
|
while (1) {
|
||||||
|
/*
|
||||||
|
* Next approximation
|
||||||
|
*/
|
||||||
|
p = k * k;
|
||||||
|
q = k + k++;
|
||||||
|
|
||||||
|
a2 = a;
|
||||||
|
b2 = b;
|
||||||
|
|
||||||
|
a = a1;
|
||||||
|
a1 = p * a2 + q * a1;
|
||||||
|
b = b1;
|
||||||
|
b1 = p * b2 + q * b1;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Print common digits
|
||||||
|
*/
|
||||||
|
d = a // b;
|
||||||
|
d1 = a1 // b1;
|
||||||
|
|
||||||
|
while (d == d1) {
|
||||||
|
if (first) {
|
||||||
|
printf("%d.", d);
|
||||||
|
first = 0;
|
||||||
|
} else {
|
||||||
|
if (!(col % 50)) {
|
||||||
|
printf("\n");
|
||||||
|
col = 0;
|
||||||
|
if (!(++row % 20)) {
|
||||||
|
printf("\n");
|
||||||
|
row = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
printf("%d", d);
|
||||||
|
if (!(++col % 10))
|
||||||
|
printf(" ");
|
||||||
|
}
|
||||||
|
a = 10 * (a % b);
|
||||||
|
a1 = 10 * (a1 % b1);
|
||||||
|
d = a // b;
|
||||||
|
d1 = a1 // b1;
|
||||||
|
}
|
||||||
|
fflush(stdout);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
* utc_hr_offset Offset from UTC in hours.
|
* utc_hr_offset Offset from UTC in hours.
|
||||||
*
|
*
|
||||||
* Written by: Klaus Alexander Seistrup <kseis@magnetic-ink.dk>
|
* Written by: Klaus Alexander Seistrup <kseis@magnetic-ink.dk>
|
||||||
* With minor mods by: Landon Curt Noll <http://reality.sgi.com/chongo>
|
* With minor mods by: Landon Curt Noll <http://reality.sgi.com/chongo/>
|
||||||
*
|
*
|
||||||
* See:
|
* See:
|
||||||
* http://www.magnetic-ink.dk/download/qtime.html
|
* http://www.magnetic-ink.dk/download/qtime.html
|
||||||
|
@@ -22,7 +22,7 @@
|
|||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
*
|
*
|
||||||
* Landon Curt Noll
|
* Landon Curt Noll
|
||||||
* http://reality.sgi.com/chongo
|
* http://reality.sgi.com/chongo/
|
||||||
*
|
*
|
||||||
* chongo <was here> /\../\
|
* chongo <was here> /\../\
|
||||||
*/
|
*/
|
||||||
|
@@ -20,7 +20,7 @@
|
|||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
*
|
*
|
||||||
* Landon Curt Noll
|
* Landon Curt Noll
|
||||||
* http://reality.sgi.com/chongo
|
* http://reality.sgi.com/chongo/
|
||||||
*
|
*
|
||||||
* chongo <was here> /\../\
|
* chongo <was here> /\../\
|
||||||
*/
|
*/
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
* provided that this copyright notice remains intact.
|
* provided that this copyright notice remains intact.
|
||||||
*
|
*
|
||||||
* By: Landon Curt Noll
|
* By: Landon Curt Noll
|
||||||
* http://reality.sgi.com/chongo
|
* http://reality.sgi.com/chongo/
|
||||||
*
|
*
|
||||||
* chongo <was here> /\../\
|
* chongo <was here> /\../\
|
||||||
*
|
*
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
* provided that this copyright notice remains intact.
|
* provided that this copyright notice remains intact.
|
||||||
*
|
*
|
||||||
* By: Landon Curt Noll
|
* By: Landon Curt Noll
|
||||||
* http://reality.sgi.com/chongo
|
* http://reality.sgi.com/chongo/
|
||||||
*
|
*
|
||||||
* chongo <was here> /\../\
|
* chongo <was here> /\../\
|
||||||
*
|
*
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
* provided that this copyright notice remains intact.
|
* provided that this copyright notice remains intact.
|
||||||
*
|
*
|
||||||
* By: Ernest Bowen and Landon Curt Noll
|
* By: Ernest Bowen and Landon Curt Noll
|
||||||
* ernie@neumann.une.edu.au and http://reality.sgi.com/chongo
|
* ernie@neumann.une.edu.au and http://reality.sgi.com/chongo/
|
||||||
*
|
*
|
||||||
* This library is used by the 2600 series of the regress.cal test suite.
|
* This library is used by the 2600 series of the regress.cal test suite.
|
||||||
*/
|
*/
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
* provided that this copyright notice remains intact.
|
* provided that this copyright notice remains intact.
|
||||||
*
|
*
|
||||||
* By: Ernest Bowen and Landon Curt Noll
|
* By: Ernest Bowen and Landon Curt Noll
|
||||||
* ernie@neumann.une.edu.au and http://reality.sgi.com/chongo
|
* ernie@neumann.une.edu.au and http://reality.sgi.com/chongo/
|
||||||
*
|
*
|
||||||
* This library is used by the 2700 series of the regress.cal test suite.
|
* This library is used by the 2700 series of the regress.cal test suite.
|
||||||
*/
|
*/
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
* provided that this copyright notice remains intact.
|
* provided that this copyright notice remains intact.
|
||||||
*
|
*
|
||||||
* By: Ernest Bowen and Landon Curt Noll
|
* By: Ernest Bowen and Landon Curt Noll
|
||||||
* ernie@neumann.une.edu.au and http://reality.sgi.com/chongo
|
* ernie@neumann.une.edu.au and http://reality.sgi.com/chongo/
|
||||||
*
|
*
|
||||||
* This library is used by the 3100 series of the regress.cal test suite.
|
* This library is used by the 3100 series of the regress.cal test suite.
|
||||||
*/
|
*/
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
* provided that this copyright notice remains intact.
|
* provided that this copyright notice remains intact.
|
||||||
*
|
*
|
||||||
* By: Ernest Bowen and Landon Curt Noll
|
* By: Ernest Bowen and Landon Curt Noll
|
||||||
* ernie@neumann.une.edu.au and http://reality.sgi.com/chongo
|
* ernie@neumann.une.edu.au and http://reality.sgi.com/chongo/
|
||||||
*
|
*
|
||||||
* This library is used by the 3300 series of the regress.cal test suite.
|
* This library is used by the 3300 series of the regress.cal test suite.
|
||||||
*/
|
*/
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
* provided that this copyright notice remains intact.
|
* provided that this copyright notice remains intact.
|
||||||
*
|
*
|
||||||
* By: Ernest Bowen and Landon Curt Noll
|
* By: Ernest Bowen and Landon Curt Noll
|
||||||
* ernie@neumann.une.edu.au and http://reality.sgi.com/chongo
|
* ernie@neumann.une.edu.au and http://reality.sgi.com/chongo/
|
||||||
*
|
*
|
||||||
* This library is used by the 3400 series of the regress.cal test suite.
|
* This library is used by the 3400 series of the regress.cal test suite.
|
||||||
*/
|
*/
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
* provided that this copyright notice remains intact.
|
* provided that this copyright notice remains intact.
|
||||||
*
|
*
|
||||||
* By: Ernest Bowen and Landon Curt Noll
|
* By: Ernest Bowen and Landon Curt Noll
|
||||||
* ernie@neumann.une.edu.au and http://reality.sgi.com/chongo
|
* ernie@neumann.une.edu.au and http://reality.sgi.com/chongo/
|
||||||
*
|
*
|
||||||
* This library is used by the 3500 series of the regress.cal test suite.
|
* This library is used by the 3500 series of the regress.cal test suite.
|
||||||
*/
|
*/
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
* provided that this copyright notice remains intact.
|
* provided that this copyright notice remains intact.
|
||||||
*
|
*
|
||||||
* By: Ernest Bowen and Landon Curt Noll
|
* By: Ernest Bowen and Landon Curt Noll
|
||||||
* ernie@neumann.une.edu.au and http://reality.sgi.com/chongo
|
* ernie@neumann.une.edu.au and http://reality.sgi.com/chongo/
|
||||||
*
|
*
|
||||||
* This library is used by the 4000 series of the regress.cal test suite.
|
* This library is used by the 4000 series of the regress.cal test suite.
|
||||||
*/
|
*/
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
* provided that this copyright notice remains intact.
|
* provided that this copyright notice remains intact.
|
||||||
*
|
*
|
||||||
* By: Ernest Bowen and Landon Curt Noll
|
* By: Ernest Bowen and Landon Curt Noll
|
||||||
* ernie@neumann.une.edu.au and http://reality.sgi.com/chongo
|
* ernie@neumann.une.edu.au and http://reality.sgi.com/chongo/
|
||||||
*
|
*
|
||||||
* This library is used by the 4100 series of the regress.cal test suite.
|
* This library is used by the 4100 series of the regress.cal test suite.
|
||||||
*/
|
*/
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
* provided that this copyright notice remains intact.
|
* provided that this copyright notice remains intact.
|
||||||
*
|
*
|
||||||
* By: Ernest Bowen and Landon Curt Noll
|
* By: Ernest Bowen and Landon Curt Noll
|
||||||
* ernie@neumann.une.edu.au and http://reality.sgi.com/chongo
|
* ernie@neumann.une.edu.au and http://reality.sgi.com/chongo/
|
||||||
*
|
*
|
||||||
* This library is used by the 4600 series of the regress.cal test suite.
|
* This library is used by the 4600 series of the regress.cal test suite.
|
||||||
*/
|
*/
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
* provided that this copyright notice remains intact.
|
* provided that this copyright notice remains intact.
|
||||||
*
|
*
|
||||||
* By: Ernest Bowen and Landon Curt Noll
|
* By: Ernest Bowen and Landon Curt Noll
|
||||||
* ernie@neumann.une.edu.au and http://reality.sgi.com/chongo
|
* ernie@neumann.une.edu.au and http://reality.sgi.com/chongo/
|
||||||
*
|
*
|
||||||
* This library is used by the 5100 series of the regress.cal test suite.
|
* This library is used by the 5100 series of the regress.cal test suite.
|
||||||
*/
|
*/
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
* provided that this copyright notice remains intact.
|
* provided that this copyright notice remains intact.
|
||||||
*
|
*
|
||||||
* By: Ernest Bowen and Landon Curt Noll
|
* By: Ernest Bowen and Landon Curt Noll
|
||||||
* ernie@neumann.une.edu.au and http://reality.sgi.com/chongo
|
* ernie@neumann.une.edu.au and http://reality.sgi.com/chongo/
|
||||||
*
|
*
|
||||||
* This library is used by the 5200 series of the regress.cal test suite.
|
* This library is used by the 5200 series of the regress.cal test suite.
|
||||||
*/
|
*/
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
* provided that this copyright notice remains intact.
|
* provided that this copyright notice remains intact.
|
||||||
*
|
*
|
||||||
* By: Landon Curt Noll
|
* By: Landon Curt Noll
|
||||||
* http://reality.sgi.com/chongo
|
* http://reality.sgi.com/chongo/
|
||||||
*
|
*
|
||||||
* chongo <was here> /\../\
|
* chongo <was here> /\../\
|
||||||
*
|
*
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
* Happy bit twiddling,
|
* Happy bit twiddling,
|
||||||
*
|
*
|
||||||
* Landon Curt Noll
|
* Landon Curt Noll
|
||||||
* http://reality.sgi.com/chongo
|
* http://reality.sgi.com/chongo/
|
||||||
*
|
*
|
||||||
* chongo <was here> /\../\
|
* chongo <was here> /\../\
|
||||||
*/
|
*/
|
||||||
|
@@ -29,7 +29,7 @@
|
|||||||
* Happy bit twiddling,
|
* Happy bit twiddling,
|
||||||
*
|
*
|
||||||
* Landon Curt Noll
|
* Landon Curt Noll
|
||||||
* http://reality.sgi.com/chongo
|
* http://reality.sgi.com/chongo/
|
||||||
*
|
*
|
||||||
* chongo <was here> /\../\
|
* chongo <was here> /\../\
|
||||||
*/
|
*/
|
||||||
|
2
poly.c
2
poly.c
@@ -4,7 +4,7 @@
|
|||||||
* provided that this copyright notice remains intact.
|
* provided that this copyright notice remains intact.
|
||||||
*
|
*
|
||||||
* By: Ernest Bowen and Landon Curt Noll
|
* By: Ernest Bowen and Landon Curt Noll
|
||||||
* ernie@neumann.une.edu.au and http://reality.sgi.com/chongo
|
* ernie@neumann.une.edu.au and http://reality.sgi.com/chongo/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "value.h"
|
#include "value.h"
|
||||||
|
@@ -20,7 +20,7 @@
|
|||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
*
|
*
|
||||||
* Landon Curt Noll
|
* Landon Curt Noll
|
||||||
* http://reality.sgi.com/chongo
|
* http://reality.sgi.com/chongo/
|
||||||
*
|
*
|
||||||
* chongo <was here> /\../\
|
* chongo <was here> /\../\
|
||||||
*/
|
*/
|
||||||
@@ -80,12 +80,12 @@ static QCKHASH blk_hash(BLOCK *blk, QCKHASH val);
|
|||||||
* The basis of this hash algorithm was taken from an idea sent
|
* The basis of this hash algorithm was taken from an idea sent
|
||||||
* as reviewer comments to the IEEE POSIX P1003.2 committee by:
|
* as reviewer comments to the IEEE POSIX P1003.2 committee by:
|
||||||
*
|
*
|
||||||
* Phong Vo (http://www.research.att.com/info/kpv)
|
* Phong Vo (http://www.research.att.com/info/kpv/)
|
||||||
* Glenn Fowler (http://www.research.att.com/~gsf/)
|
* Glenn Fowler (http://www.research.att.com/~gsf/)
|
||||||
*
|
*
|
||||||
* In a subsequent ballot round:
|
* In a subsequent ballot round:
|
||||||
*
|
*
|
||||||
* Landon Curt Noll (http://reality.sgi.com/chongo)
|
* Landon Curt Noll (http://reality.sgi.com/chongo/)
|
||||||
*
|
*
|
||||||
* improved on their algorithm. Some people tried this hash
|
* improved on their algorithm. Some people tried this hash
|
||||||
* and found that it worked rather well. In an EMail message
|
* and found that it worked rather well. In an EMail message
|
||||||
|
@@ -27,7 +27,7 @@
|
|||||||
# Happy bit twiddling,
|
# Happy bit twiddling,
|
||||||
#
|
#
|
||||||
# Landon Curt Noll
|
# Landon Curt Noll
|
||||||
# http://reality.sgi.com/chongo
|
# http://reality.sgi.com/chongo/
|
||||||
#
|
#
|
||||||
# chongo <was here> /\../\
|
# chongo <was here> /\../\
|
||||||
|
|
||||||
|
10
seed.c
10
seed.c
@@ -6,7 +6,7 @@
|
|||||||
* NOTE: This is not a good source of chaotic data. The lavarand
|
* NOTE: This is not a good source of chaotic data. The lavarand
|
||||||
* system does a much better job of that. See:
|
* system does a much better job of that. See:
|
||||||
*
|
*
|
||||||
* http://lavarand.sgi.com
|
* http://lavarand.sgi.com/index.html
|
||||||
*
|
*
|
||||||
* Copyright (c) 1999 by Landon Curt Noll. All Rights Reserved.
|
* Copyright (c) 1999 by Landon Curt Noll. All Rights Reserved.
|
||||||
*
|
*
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
*
|
*
|
||||||
* Landon Curt Noll
|
* Landon Curt Noll
|
||||||
* http://reality.sgi.com/chongo
|
* http://reality.sgi.com/chongo/
|
||||||
*
|
*
|
||||||
* chongo <was here> /\../\
|
* chongo <was here> /\../\
|
||||||
*
|
*
|
||||||
@@ -160,12 +160,12 @@ hash_buf(char *buf, unsigned len)
|
|||||||
* The basis of this hash algorithm was taken from an idea sent
|
* The basis of this hash algorithm was taken from an idea sent
|
||||||
* as reviewer comments to the IEEE POSIX P1003.2 committee by:
|
* as reviewer comments to the IEEE POSIX P1003.2 committee by:
|
||||||
*
|
*
|
||||||
* Phong Vo (http://www.research.att.com/info/kpv)
|
* Phong Vo (http://www.research.att.com/info/kpv/)
|
||||||
* Glenn Fowler (http://www.research.att.com/~gsf/)
|
* Glenn Fowler (http://www.research.att.com/~gsf/)
|
||||||
*
|
*
|
||||||
* In a subsequent ballot round:
|
* In a subsequent ballot round:
|
||||||
*
|
*
|
||||||
* Landon Curt Noll (http://reality.sgi.com/chongo)
|
* Landon Curt Noll (http://reality.sgi.com/chongo/)
|
||||||
*
|
*
|
||||||
* improved on their algorithm. Some people tried this hash
|
* improved on their algorithm. Some people tried this hash
|
||||||
* and found that it worked rather well. In an EMail message
|
* and found that it worked rather well. In an EMail message
|
||||||
@@ -251,7 +251,7 @@ hash_buf(char *buf, unsigned len)
|
|||||||
* NOTE: This is not a good source of chaotic data. The lavarand
|
* NOTE: This is not a good source of chaotic data. The lavarand
|
||||||
* system does a much better job of that. See:
|
* system does a much better job of that. See:
|
||||||
*
|
*
|
||||||
* http://lavarand.sgi.com
|
* http://lavarand.sgi.com/index.html
|
||||||
*
|
*
|
||||||
* PORTING NOTE:
|
* PORTING NOTE:
|
||||||
* If when porting this code to your system and something
|
* If when porting this code to your system and something
|
||||||
|
4
shs.c
4
shs.c
@@ -12,7 +12,7 @@
|
|||||||
* This file was Modified/Re-written by:
|
* This file was Modified/Re-written by:
|
||||||
*
|
*
|
||||||
* Landon Curt Noll
|
* Landon Curt Noll
|
||||||
* http://reality.sgi.com/chongo
|
* http://reality.sgi.com/chongo/
|
||||||
*
|
*
|
||||||
* chongo <was here> /\../\
|
* chongo <was here> /\../\
|
||||||
*
|
*
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*
|
*
|
||||||
* Based on Version 2.11 (09 Mar 1995) from Landon Curt Noll's
|
* Based on Version 2.11 (09 Mar 1995) from Landon Curt Noll's
|
||||||
* (http://reality.sgi.com/chongo) shs hash program.
|
* (http://reality.sgi.com/chongo/) shs hash program.
|
||||||
*
|
*
|
||||||
****
|
****
|
||||||
*
|
*
|
||||||
|
2
shs.h
2
shs.h
@@ -12,7 +12,7 @@
|
|||||||
* This file was Modified by:
|
* This file was Modified by:
|
||||||
*
|
*
|
||||||
* Landon Curt Noll
|
* Landon Curt Noll
|
||||||
* http://reality.sgi.com/chongo
|
* http://reality.sgi.com/chongo/
|
||||||
*
|
*
|
||||||
* chongo <was here> /\../\
|
* chongo <was here> /\../\
|
||||||
*
|
*
|
||||||
|
2
shs1.c
2
shs1.c
@@ -6,7 +6,7 @@
|
|||||||
* This file was Modified/Re-written by:
|
* This file was Modified/Re-written by:
|
||||||
*
|
*
|
||||||
* Landon Curt Noll
|
* Landon Curt Noll
|
||||||
* http://reality.sgi.com/chongo
|
* http://reality.sgi.com/chongo/
|
||||||
*
|
*
|
||||||
* chongo <was here> /\../\
|
* chongo <was here> /\../\
|
||||||
*
|
*
|
||||||
|
2
shs1.h
2
shs1.h
@@ -6,7 +6,7 @@
|
|||||||
* This file was Modified by:
|
* This file was Modified by:
|
||||||
*
|
*
|
||||||
* Landon Curt Noll
|
* Landon Curt Noll
|
||||||
* http://reality.sgi.com/chongo
|
* http://reality.sgi.com/chongo/
|
||||||
*
|
*
|
||||||
* chongo <was here> /\../\
|
* chongo <was here> /\../\
|
||||||
*
|
*
|
||||||
|
12
version.c
12
version.c
@@ -7,12 +7,18 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "calc.h"
|
#if defined(CALC_VER)
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
static char *program;
|
||||||
|
#else
|
||||||
|
# include "calc.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#define MAJOR_VER 2 /* major version */
|
#define MAJOR_VER 2 /* major version */
|
||||||
#define MINOR_VER 11 /* minor version */
|
#define MINOR_VER 11 /* minor version */
|
||||||
#define MAJOR_PATCH 0 /* patch level or 0 if no patch */
|
#define MAJOR_PATCH 0 /* patch level or 0 if no patch */
|
||||||
#define MINOR_PATCH "9.4" /* test number or empty string if no patch */
|
#define MINOR_PATCH "9.4.1" /* test number or empty string if no patch */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* calc version constants
|
* calc version constants
|
||||||
@@ -84,8 +90,6 @@ version(void)
|
|||||||
|
|
||||||
#if defined(CALC_VER)
|
#if defined(CALC_VER)
|
||||||
|
|
||||||
char *program; /* our name */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* version - print the calc version
|
* version - print the calc version
|
||||||
*/
|
*/
|
||||||
|
2
zrand.c
2
zrand.c
@@ -29,7 +29,7 @@
|
|||||||
* Happy bit twiddling,
|
* Happy bit twiddling,
|
||||||
*
|
*
|
||||||
* Landon Curt Noll
|
* Landon Curt Noll
|
||||||
* http://reality.sgi.com/chongo
|
* http://reality.sgi.com/chongo/
|
||||||
*
|
*
|
||||||
* chongo <was here> /\../\
|
* chongo <was here> /\../\
|
||||||
*/
|
*/
|
||||||
|
2
zrand.h
2
zrand.h
@@ -29,7 +29,7 @@
|
|||||||
* Happy bit twiddling,
|
* Happy bit twiddling,
|
||||||
*
|
*
|
||||||
* Landon Curt Noll
|
* Landon Curt Noll
|
||||||
* http://reality.sgi.com/chongo
|
* http://reality.sgi.com/chongo/
|
||||||
*
|
*
|
||||||
* chongo <was here> /\../\
|
* chongo <was here> /\../\
|
||||||
*/
|
*/
|
||||||
|
@@ -29,7 +29,7 @@
|
|||||||
* Happy bit twiddling,
|
* Happy bit twiddling,
|
||||||
*
|
*
|
||||||
* Landon Curt Noll
|
* Landon Curt Noll
|
||||||
* http://reality.sgi.com/chongo
|
* http://reality.sgi.com/chongo/
|
||||||
*
|
*
|
||||||
* chongo <was here> /\../\
|
* chongo <was here> /\../\
|
||||||
*/
|
*/
|
||||||
@@ -365,8 +365,7 @@
|
|||||||
* were selected by lavarand, a hardware random number generator.
|
* were selected by lavarand, a hardware random number generator.
|
||||||
* See the URL:
|
* See the URL:
|
||||||
*
|
*
|
||||||
* http://lavarand.sgi.com
|
* http://lavarand.sgi.com/index.html
|
||||||
* XXX - This URL is not available on 17Feb97 ... but will be soon.
|
|
||||||
*
|
*
|
||||||
* for an explination of how the lavarand random number generator works.
|
* for an explination of how the lavarand random number generator works.
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user