You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.9 KiB

25 years ago
  1. This directory contains an interface to the LiDIA library, version 1.3.1.
  2. It is already contained in LiDIA-1.3.1 and LiDIA-1.4a1, and is reproduced
  3. here only as a sample for the use of CLN.
  4. LiDIA is available from
  5. ftp://ftp.informatik.th-darmstadt.de/pub/TI/systems/LiDIA
  6. (The LiDIA group has also a nice Web page.)
  7. LiDIA has an abstract interface to the underlying long integer implementation.
  8. Using CLN instead of the default libI, lip or gmp has the following
  9. advantages:
  10. - Maximum speed on all CPUs, since CLN is based on the highly
  11. optimized gmp-2.0.2.
  12. - Very large integers profit from CLN's Sch�nhage-Strassen FFT multiplication
  13. (asymptotic bit complexity: O(N log N log log N)).
  14. - Copying integers is fast: no copying is actually involved, only a
  15. reference count is manipulated.
  16. - Small integers (absolute value < 2^29) are represented immediately,
  17. thus no memory allocation/deallocation is involved when dealing with
  18. small integers.
  19. CLN does all this automatically.
  20. INSTALLATION
  21. ------------
  22. 1. Build CLN.
  23. 2. Apply the first patch to LiDIA:
  24. $ cd .../LiDIA
  25. $ patch -p1 < .../cln/lidia-interface/LiDIA-patch1
  26. 3. Configure LiDIA as described in its manual.
  27. 4. Apply the second patch to LiDIA:
  28. $ cd .../LiDIA
  29. $ patch -p1 < .../cln/lidia-interface/LiDIA-patch2
  30. You may have to do this by hand, if the patch fails.
  31. 5. Make two symbolic links
  32. $ ln -s .../cln/lidia-interface/interfaces/integers/cln \
  33. .../LiDIA/src/interfaces/integers/cln
  34. $ ln -s .../cln/BUILDDIR/src .../LiDIA/src/kernel/integers/cln
  35. where .../cln/BUILDDIR is the directory in which you have built
  36. cln (i.e. there is a file .../cln/BUILDDIR/src/libcln.a).
  37. 6. Modify the definitions of the variables CLN_DIR and CLN_TARGETDIR in
  38. the file .../LiDIA/config/CONFIG :
  39. CLN_DIR must point to .../cln,
  40. CLN_TARGETDIR must point to .../cln/BUILDDIR.
  41. 7. Build LiDIA as described in its manual.