Boron 0.1.0

bignum.h

Go to the documentation of this file.
00001 /*
00002   Copyright 2007-2009 Karl Robillard
00003 
00004   This file is part of the Urlan datatype system.
00005 
00006   Urlan is free software: you can redistribute it and/or modify
00007   it under the terms of the GNU Lesser General Public License as published by
00008   the Free Software Foundation, either version 3 of the License, or
00009   (at your option) any later version.
00010 
00011   Urlan is distributed in the hope that it will be useful,
00012   but WITHOUT ANY WARRANTY; without even the implied warranty of
00013   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014   GNU Lesser General Public License for more details.
00015 
00016   You should have received a copy of the GNU Lesser General Public License
00017   along with Urlan.  If not, see <http://www.gnu.org/licenses/>.
00018 */
00019 
00020 
00021 #ifdef __cplusplus
00022 extern "C" {
00023 #endif
00024 
00025 void    bignum_zero( UCell* );
00026 void    bignum_seti( UCell*, int n );
00027 void    bignum_setl( UCell*, int64_t n );
00028 void    bignum_setd( UCell*, double n );
00029 int64_t bignum_l( const UCell* );
00030 double  bignum_d( const UCell* );
00031 int     bignum_equal( const UCell*, const UCell* );
00032 int     bignum_cmp( const UCell*, const UCell* );
00033 void    bignum_abs( UCell* );
00034 void    bignum_negate( const UCell*, UCell* result );
00035 void    bignum_add( const UCell*, const UCell*, UCell* result );
00036 void    bignum_sub( const UCell*, const UCell*, UCell* result );
00037 void    bignum_mul( const UCell*, const UCell*, UCell* result );
00038 
00039 #ifdef __cplusplus
00040 }
00041 #endif
00042 
00043 
00044 /*EOF*/

Generated on 27 Jan 2012 by Doxygen 1.5.1