Browse Source
* All Files have been modified for inclusion of namespace cln;
* All Files have been modified for inclusion of namespace cln;
I am too lazy for a detailed discussion of all the changes.
Many identifiers got their `cl_' stripped off. Ok, this is a
clumpsy CVS log-entry. Promise: more will soon go into the
file ChangeLog. I apologize for the inconvenience. :-(
master
1148 changed files with 12230 additions and 8315 deletions
-
2FILES
-
12INSTALL
-
2Makefile.devel
-
15Makefile.in
-
14NEWS
-
18README
-
2autoconf/aclocal.m4
-
24autoconf/config.guess
-
45autoconf/config.sub
-
84benchmarks/timebench1.cc
-
39benchmarks/timebench2a.cc
-
19benchmarks/timebench2ap.cc
-
73benchmarks/timebench2b.cc
-
57cln-config.in
-
209configure
-
31configure.in
-
BINdoc/cln.dvi
-
1106doc/cln.html
-
704doc/cln.info
-
4106doc/cln.ps
-
516doc/cln.tex
-
525doc/cln.texi
-
7doc/cln_1.html
-
14doc/cln_10.html
-
201doc/cln_11.html
-
42doc/cln_12.html
-
4doc/cln_13.html
-
44doc/cln_2.html
-
74doc/cln_3.html
-
431doc/cln_4.html
-
42doc/cln_5.html
-
18doc/cln_6.html
-
74doc/cln_7.html
-
24doc/cln_8.html
-
134doc/cln_9.html
-
23doc/cln_toc.html
-
1examples/Makefile.in
-
19examples/atan_recip.cc
-
22examples/atanh_recip.cc
-
24examples/contfrac.cc
-
40examples/e.cc
-
84examples/fibonacci.cc
-
34examples/legendre.cc
-
26examples/lucaslehmer.cc
-
22examples/nextprime.cc
-
12examples/perfnum.cc
-
127include/cl_config.h.in
-
16include/cl_floatformat.h
-
141include/cln.h
-
8include/cln/GV.h
-
16include/cln/GV_complex.h
-
16include/cln/GV_integer.h
-
7include/cln/GV_modinteger.h
-
8include/cln/GV_number.h
-
16include/cln/GV_rational.h
-
16include/cln/GV_real.h
-
8include/cln/SV.h
-
16include/cln/SV_complex.h
-
16include/cln/SV_integer.h
-
10include/cln/SV_number.h
-
16include/cln/SV_rational.h
-
16include/cln/SV_real.h
-
10include/cln/SV_ringelt.h
-
6include/cln/V.h
-
4include/cln/abort.h
-
141include/cln/cln.h
-
22include/cln/complex.h
-
8include/cln/complex_class.h
-
10include/cln/complex_io.h
-
8include/cln/complex_ring.h
-
23include/cln/condition.h
-
42include/cln/dfloat.h
-
10include/cln/dfloat_class.h
-
14include/cln/dfloat_io.h
-
42include/cln/ffloat.h
-
10include/cln/ffloat_class.h
-
14include/cln/ffloat_io.h
-
172include/cln/float.h
-
10include/cln/float_class.h
-
12include/cln/float_io.h
-
20include/cln/floatformat.h
-
14include/cln/input.h
-
44include/cln/integer.h
-
10include/cln/integer_class.h
-
14include/cln/integer_io.h
-
8include/cln/integer_ring.h
-
84include/cln/io.h
-
42include/cln/lfloat.h
-
10include/cln/lfloat_class.h
-
14include/cln/lfloat_io.h
-
8include/cln/malloc.h
-
46include/cln/modinteger.h
-
0include/cln/modules.h
-
6include/cln/null_ring.h
-
8include/cln/number.h
-
8include/cln/number_io.h
-
12include/cln/numtheory.h
-
19include/cln/object.h
-
18include/cln/output.h
-
16include/cln/proplist.h
@ -0,0 +1,57 @@ |
|||
#!/bin/sh |
|||
|
|||
prefix=@prefix@ |
|||
exec_prefix=@exec_prefix@ |
|||
exec_prefix_set=no |
|||
|
|||
usage="\ |
|||
Usage: cln-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--libs] [--cppflags]" |
|||
|
|||
if test $# -eq 0; then |
|||
echo "${usage}" 1>&2 |
|||
exit 1 |
|||
fi |
|||
|
|||
while test $# -gt 0; do |
|||
case "$1" in |
|||
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
|||
*) optarg= ;; |
|||
esac |
|||
|
|||
case $1 in |
|||
--prefix=*) |
|||
prefix=$optarg |
|||
if test $exec_prefix_set = no ; then |
|||
exec_prefix=$optarg |
|||
fi |
|||
;; |
|||
--prefix) |
|||
echo $prefix |
|||
;; |
|||
--exec-prefix=*) |
|||
exec_prefix=$optarg |
|||
exec_prefix_set=yes |
|||
;; |
|||
--exec-prefix) |
|||
echo $exec_prefix |
|||
;; |
|||
--version) |
|||
echo @CL_VERSION@ |
|||
;; |
|||
--cppflags) |
|||
if test @includedir@ != /usr/include ; then |
|||
includes=-I@includedir@ |
|||
fi |
|||
echo $includes @CPPFLAGS@ |
|||
;; |
|||
--libs) |
|||
libdirs=-L@libdir@ |
|||
echo $libdirs -lcln @LIBS@ |
|||
;; |
|||
*) |
|||
echo "${usage}" 1>&2 |
|||
exit 1 |
|||
;; |
|||
esac |
|||
shift |
|||
done |
|||
1106
doc/cln.html
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
704
doc/cln.info
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
4106
doc/cln.ps
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
516
doc/cln.tex
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
525
doc/cln.texi
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
431
doc/cln_4.html
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1,11 +1,15 @@ |
|||
// This program prints the largest now known perfect number.
|
|||
// This program prints the largest now known even perfect number.
|
|||
|
|||
#include <cl_integer.h>
|
|||
#include <cl_integer_io.h>
|
|||
#include <cln/integer.h>
|
|||
#include <cln/integer_io.h>
|
|||
|
|||
using namespace std; |
|||
using namespace cln; |
|||
|
|||
int main () |
|||
{ |
|||
int p = 1398269; // previous one was 1257787
|
|||
// previous ones were 1257787, 1398269, 2976221, 3021377
|
|||
int p = 6972593; |
|||
cl_I x = (((cl_I)1 << p) - 1) << (p-1); |
|||
cout << x << endl; |
|||
} |
|||
@ -1,127 +0,0 @@ |
|||
// Defines CPU and compiler dependent macros |
|||
|
|||
#ifndef _CL_CONFIG_H |
|||
#define _CL_CONFIG_H |
|||
|
|||
/* These definitions are adjusted by `configure' automatically. */ |
|||
|
|||
|
|||
/* release version */ |
|||
|
|||
#undef CL_VERSION |
|||
#undef CL_VERSION_MINOR |
|||
#undef CL_VERSION_PATCHLEVEL |
|||
|
|||
|
|||
/* CPU */ |
|||
#ifndef __i386__ |
|||
#undef __i386__ |
|||
#endif |
|||
#ifndef __m68k__ |
|||
#undef __m68k__ |
|||
#endif |
|||
#ifndef __mips__ |
|||
#undef __mips__ |
|||
#endif |
|||
#ifndef __mips64__ |
|||
#undef __mips64__ |
|||
#endif |
|||
#ifndef __sparc__ |
|||
#undef __sparc__ |
|||
#endif |
|||
#ifndef __sparc64__ |
|||
#undef __sparc64__ |
|||
#endif |
|||
#ifndef __alpha__ |
|||
#undef __alpha__ |
|||
#endif |
|||
#ifndef __hppa__ |
|||
#undef __hppa__ |
|||
#endif |
|||
#ifndef __arm__ |
|||
#undef __arm__ |
|||
#endif |
|||
#ifndef __rs6000__ |
|||
#undef __rs6000__ |
|||
#endif |
|||
#ifndef __m88k__ |
|||
#undef __m88k__ |
|||
#endif |
|||
#ifndef __convex__ |
|||
#undef __convex__ |
|||
#endif |
|||
|
|||
|
|||
/* assembler syntax */ |
|||
|
|||
/* CL_AS_UNDERSCORE */ |
|||
/* Define if C symbols are prefixed by an underscore in assembly language. */ |
|||
#undef ASM_UNDERSCORE |
|||
|
|||
|
|||
/* compiler characteristics */ |
|||
|
|||
/* CL_BOOL */ |
|||
/* Define if your compiler understands the bool type. */ |
|||
#undef HAVE_BOOL |
|||
/* Define this as `int' if your compiler doesn't understand the bool type. */ |
|||
#undef bool |
|||
|
|||
/* CL_LONGLONG */ |
|||
/* Define if your compiler supports the `long long' type. */ |
|||
#undef HAVE_LONGLONG |
|||
|
|||
/* CL_LONGDOUBLE */ |
|||
/* Define if your compiler supports the `long double' type. */ |
|||
#undef HAVE_LONGDOUBLE |
|||
|
|||
/* CL_TEMPLATE_NULL */ |
|||
/* Define if your compiler supports the `template <>' syntax. */ |
|||
#undef HAVE_TEMPLATE_NULL |
|||
|
|||
|
|||
/* header files */ |
|||
|
|||
/* CL_UNISTD_H */ |
|||
/* Define if you have <unistd.h>. */ |
|||
#undef HAVE_UNISTD_H |
|||
|
|||
|
|||
/* functions and declarations */ |
|||
|
|||
/* CL_ALLOCA */ |
|||
/* Define if you have <alloca.h> and it should be used (not Ultrix). */ |
|||
#undef HAVE_ALLOCA_H |
|||
/* Define if you need to link with an external alloca.o when using alloca(). */ |
|||
#undef NO_ALLOCA |
|||
|
|||
|
|||
/* compiler characteristics */ |
|||
|
|||
/* CL_GLOBAL_CONSTRUCTORS */ |
|||
/* Define as the prefix of the name of a module's global constructor function, |
|||
cf. macro FILE_FUNCTION_FORMAT in gcc/tree.c. */ |
|||
#ifndef CL_GLOBAL_CONSTRUCTOR_PREFIX |
|||
#undef CL_GLOBAL_CONSTRUCTOR_PREFIX |
|||
#endif |
|||
/* Define as the prefix of the name of a module's global destructor function, |
|||
cf. macro FILE_FUNCTION_FORMAT in gcc/tree.c. */ |
|||
#ifndef CL_GLOBAL_DESTRUCTOR_PREFIX |
|||
#undef CL_GLOBAL_DESTRUCTOR_PREFIX |
|||
#endif |
|||
/* Define if a module's global constructor function and global destructor |
|||
function need to be exported in order to be accessible from other modules. */ |
|||
#undef CL_NEED_GLOBALIZE_CTORDTOR |
|||
|
|||
/* CL_CHAR_UNSIGNED */ |
|||
#ifndef __CHAR_UNSIGNED__ |
|||
#undef __CHAR_UNSIGNED__ |
|||
#endif |
|||
|
|||
/* CL_MACHINE */ |
|||
/* see cl_intparam.h */ |
|||
/* see cl_floatparam.h */ |
|||
|
|||
|
|||
#endif /* _CL_CONFIG_H */ |
|||
|
|||
@ -1,16 +0,0 @@ |
|||
// Floating point format specifiers. |
|||
|
|||
#ifndef _CL_FLOATFORMAT_H |
|||
#define _CL_FLOATFORMAT_H |
|||
|
|||
#include "cl_types.h" |
|||
|
|||
// Float format specifier type. (Float mantissa precision in bits.) |
|||
typedef enum cl_float_format_t { |
|||
cl_float_format_sfloat = 17, |
|||
cl_float_format_ffloat = 24, |
|||
cl_float_format_dfloat = 53, |
|||
cl_float_format_lfloat_min = ((53+intDsize-1)/intDsize)*intDsize // = round_up(53,intDsize) |
|||
}; |
|||
|
|||
#endif /* _CL_FLOATFORMAT_H */ |
|||
@ -1,141 +0,0 @@ |
|||
// CLN exported types and functions |
|||
|
|||
#ifndef _CLN_H |
|||
#define _CLN_H |
|||
|
|||
// Automatically generated by configure |
|||
//#include "cl_config.h" // included by "cl_types.h" below |
|||
//#include "cl_intparam.h" // included by "cl_types.h" below |
|||
//#include "cl_floatparam.h" // not needed by any public header file |
|||
|
|||
// ============================== base ============================== |
|||
|
|||
// Basic types and definitions. |
|||
#include "cl_types.h" |
|||
#include "cl_modules.h" |
|||
#include "cl_object.h" |
|||
|
|||
// Miscellaneous. |
|||
#include "cl_random.h" |
|||
#include "cl_malloc.h" |
|||
#include "cl_abort.h" |
|||
#include "cl_floatformat.h" |
|||
#include "cl_io.h" |
|||
#include "cl_condition.h" |
|||
|
|||
// Symbolic facilities. |
|||
#include "cl_string.h" |
|||
#include "cl_symbol.h" |
|||
#include "cl_proplist.h" |
|||
|
|||
// Miscellaneous. |
|||
#include "cl_input.h" |
|||
#include "cl_output.h" |
|||
|
|||
// Abstract number classes. |
|||
#include "cl_number.h" |
|||
#include "cl_number_io.h" |
|||
#include "cl_complex_class.h" |
|||
#include "cl_real_class.h" |
|||
#include "cl_rational_class.h" |
|||
|
|||
// Rings. |
|||
#include "cl_ring.h" |
|||
|
|||
// ============================== integer ============================== |
|||
|
|||
// Integers. |
|||
#include "cl_integer_class.h" |
|||
#include "cl_integer.h" |
|||
#include "cl_integer_io.h" |
|||
#include "cl_integer_ring.h" |
|||
#include "cl_null_ring.h" |
|||
|
|||
// ============================== rational ============================== |
|||
|
|||
// Rational numbers. |
|||
#include "cl_rational.h" |
|||
#include "cl_rational_io.h" |
|||
#include "cl_rational_ring.h" |
|||
|
|||
// ============================== float ============================== |
|||
|
|||
// Floating-point numbers. |
|||
#include "cl_float_class.h" |
|||
#include "cl_sfloat_class.h" |
|||
#include "cl_ffloat_class.h" |
|||
#include "cl_dfloat_class.h" |
|||
#include "cl_lfloat_class.h" |
|||
#include "cl_float.h" |
|||
#include "cl_float_io.h" |
|||
#include "cl_sfloat.h" |
|||
#include "cl_sfloat_io.h" |
|||
#include "cl_ffloat.h" |
|||
#include "cl_ffloat_io.h" |
|||
#include "cl_dfloat.h" |
|||
#include "cl_dfloat_io.h" |
|||
#include "cl_lfloat.h" |
|||
#include "cl_lfloat_io.h" |
|||
|
|||
// ============================== real ============================== |
|||
|
|||
// Real numbers. |
|||
#include "cl_real.h" |
|||
#include "cl_real_io.h" |
|||
#include "cl_real_ring.h" |
|||
|
|||
// ============================== complex ============================== |
|||
|
|||
// Complex numbers. |
|||
#include "cl_complex.h" |
|||
#include "cl_complex_io.h" |
|||
#include "cl_complex_ring.h" |
|||
|
|||
// ============================== modinteger ============================== |
|||
|
|||
// Modular integers. |
|||
#include "cl_modinteger.h" |
|||
|
|||
// ============================== numtheory ============================== |
|||
|
|||
// Rings for number theory. |
|||
#include "cl_numtheory.h" |
|||
|
|||
// ============================== vector ============================== |
|||
|
|||
// Vectors. |
|||
#include "cl_V.h" |
|||
#include "cl_GV.h" |
|||
#include "cl_GV_number.h" |
|||
#include "cl_GV_complex.h" |
|||
#include "cl_GV_real.h" |
|||
#include "cl_GV_rational.h" |
|||
#include "cl_GV_integer.h" |
|||
#include "cl_GV_modinteger.h" |
|||
#include "cl_SV.h" |
|||
#include "cl_SV_number.h" |
|||
#include "cl_SV_complex.h" |
|||
#include "cl_SV_real.h" |
|||
#include "cl_SV_rational.h" |
|||
#include "cl_SV_integer.h" |
|||
#include "cl_SV_ringelt.h" |
|||
|
|||
// ============================== polynomial ============================== |
|||
|
|||
// Polynomials. |
|||
#include "cl_univpoly.h" |
|||
#include "cl_univpoly_complex.h" |
|||
#include "cl_univpoly_real.h" |
|||
#include "cl_univpoly_rational.h" |
|||
#include "cl_univpoly_integer.h" |
|||
#include "cl_univpoly_modint.h" |
|||
|
|||
// ============================== modpolynomial ============================== |
|||
|
|||
// ============================== timing ============================== |
|||
|
|||
// Environmental facilities. |
|||
#include "cl_timing.h" |
|||
|
|||
#endif /* _CLN_H */ |
|||
|
|||
@ -0,0 +1,141 @@ |
|||
// CLN exported types and functions |
|||
|
|||
#ifndef _CLN_H |
|||
#define _CLN_H |
|||
|
|||
// Automatically generated by configure |
|||
//#include "cln/config.h" // included by "cln/types.h" below |
|||
//#include "cln/intparam.h" // included by "cln/types.h" below |
|||
//#include "cln/floatparam.h" // not needed by any public header file |
|||
|
|||
// ============================== base ============================== |
|||
|
|||
// Basic types and definitions. |
|||
#include "cln/types.h" |
|||
#include "cln/modules.h" |
|||
#include "cln/object.h" |
|||
|
|||
// Miscellaneous. |
|||
#include "cln/random.h" |
|||
#include "cln/malloc.h" |
|||
#include "cln/abort.h" |
|||
#include "cln/floatformat.h" |
|||
#include "cln/io.h" |
|||
#include "cln/condition.h" |
|||
|
|||
// Symbolic facilities. |
|||
#include "cln/string.h" |
|||
#include "cln/symbol.h" |
|||
#include "cln/proplist.h" |
|||
|
|||
// Miscellaneous. |
|||
#include "cln/input.h" |
|||
#include "cln/output.h" |
|||
|
|||
// Abstract number classes. |
|||
#include "cln/number.h" |
|||
#include "cln/number_io.h" |
|||
#include "cln/complex_class.h" |
|||
#include "cln/real_class.h" |
|||
#include "cln/rational_class.h" |
|||
|
|||
// Rings. |
|||
#include "cln/ring.h" |
|||
|
|||
// ============================== integer ============================== |
|||
|
|||
// Integers. |
|||
#include "cln/integer_class.h" |
|||
#include "cln/integer.h" |
|||
#include "cln/integer_io.h" |
|||
#include "cln/integer_ring.h" |
|||
#include "cln/null_ring.h" |
|||
|
|||
// ============================== rational ============================== |
|||
|
|||
// Rational numbers. |
|||
#include "cln/rational.h" |
|||
#include "cln/rational_io.h" |
|||
#include "cln/rational_ring.h" |
|||
|
|||
// ============================== float ============================== |
|||
|
|||
// Floating-point numbers. |
|||
#include "cln/float_class.h" |
|||
#include "cln/sfloat_class.h" |
|||
#include "cln/ffloat_class.h" |
|||
#include "cln/dfloat_class.h" |
|||
#include "cln/lfloat_class.h" |
|||
#include "cln/float.h" |
|||
#include "cln/float_io.h" |
|||
#include "cln/sfloat.h" |
|||
#include "cln/sfloat_io.h" |
|||
#include "cln/ffloat.h" |
|||
#include "cln/ffloat_io.h" |
|||
#include "cln/dfloat.h" |
|||
#include "cln/dfloat_io.h" |
|||
#include "cln/lfloat.h" |
|||
#include "cln/lfloat_io.h" |
|||
|
|||
// ============================== real ============================== |
|||
|
|||
// Real numbers. |
|||
#include "cln/real.h" |
|||
#include "cln/real_io.h" |
|||
#include "cln/real_ring.h" |
|||
|
|||
// ============================== complex ============================== |
|||
|
|||
// Complex numbers. |
|||
#include "cln/complex.h" |
|||
#include "cln/complex_io.h" |
|||
#include "cln/complex_ring.h" |
|||
|
|||
// ============================== modinteger ============================== |
|||
|
|||
// Modular integers. |
|||
#include "cln/modinteger.h" |
|||
|
|||
// ============================== numtheory ============================== |
|||
|
|||
// Rings for number theory. |
|||
#include "cln/numtheory.h" |
|||
|
|||
// ============================== vector ============================== |
|||
|
|||
// Vectors. |
|||
#include "cln/V.h" |
|||
#include "cln/GV.h" |
|||
#include "cln/GV_number.h" |
|||
#include "cln/GV_complex.h" |
|||
#include "cln/GV_real.h" |
|||
#include "cln/GV_rational.h" |
|||
#include "cln/GV_integer.h" |
|||
#include "cln/GV_modinteger.h" |
|||
#include "cln/SV.h" |
|||
#include "cln/SV_number.h" |
|||
#include "cln/SV_complex.h" |
|||
#include "cln/SV_real.h" |
|||
#include "cln/SV_rational.h" |
|||
#include "cln/SV_integer.h" |
|||
#include "cln/SV_ringelt.h" |
|||
|
|||
// ============================== polynomial ============================== |
|||
|
|||
// Polynomials. |
|||
#include "cln/univpoly.h" |
|||
#include "cln/univpoly_complex.h" |
|||
#include "cln/univpoly_real.h" |
|||
#include "cln/univpoly_rational.h" |
|||
#include "cln/univpoly_integer.h" |
|||
#include "cln/univpoly_modint.h" |
|||
|
|||
// ============================== modpolynomial ============================== |
|||
|
|||
// ============================== timing ============================== |
|||
|
|||
// Environmental facilities. |
|||
#include "cln/timing.h" |
|||
|
|||
#endif /* _CLN_H */ |
|||
|
|||
@ -0,0 +1,20 @@ |
|||
// Floating point format specifiers. |
|||
|
|||
#ifndef _CL_FLOATFORMAT_H |
|||
#define _CL_FLOATFORMAT_H |
|||
|
|||
#include "cln/types.h" |
|||
|
|||
namespace cln { |
|||
|
|||
// Float format specifier type. (Float mantissa precision in bits.) |
|||
typedef enum float_format_t { |
|||
float_format_sfloat = 17, |
|||
float_format_ffloat = 24, |
|||
float_format_dfloat = 53, |
|||
float_format_lfloat_min = ((53+intDsize-1)/intDsize)*intDsize // = round_up(53,intDsize) |
|||
}; |
|||
|
|||
} // namespace cln |
|||
|
|||
#endif /* _CL_FLOATFORMAT_H */ |
|||
Some files were not shown because too many files changed in this diff
Write
Preview
Loading…
Cancel
Save
Reference in new issue