Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
Makefile
README.html
README.org
bigint.em
bignum.em
bigrat.em
eul-gmp-gc.c
eul-mpq.c
eul-mpz.c
mpq.em
mpz.em
test1.em

README.org

Bignum module for Youtoo 0.93

#

Copyright

Youtoo is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.

Youtoo is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Youtoo in the file COPYING. If not, see http://www.gnu.org/licenses/.

EuLisp index

General Description

This is an interface module to the GNU Bignum package.

Installation

  • Run ‘make’ in directory Modules/Bignum.
  • Run ‘make test’ in directory Modules/Bignum.
  • Add -lbignum to U2_LIBS in youtoo.eulrc.${ARCH}/.

Files

The bignum library consists of a number of EuLisp modules:

  • bignum.em – root module
  • bigint.em – big integer module and class
  • bigrat.em – rational number module and class
  • mpz.em – module containing bindings to c functions
  • mpq.em – module containing bindings to c functions

And three C files:

  • eul-mpz.c – C interface for integer functions
  • eul-mpq.c – C interface for rational functions
  • eul-gmp-gc.c – C interface to GC

To Do

  • rationals are not integrated into EuLisp
  • check everything is being GC-ed properly
Something went wrong with that request. Please try again.