root/trunk/thune/bignum.h

Revision 371, 1.6 kB (checked in by krobillard, 21 months ago)

Thune - Added bignum_mul().

Line 
1/*============================================================================
2    Urlan BigNums
3    Copyright (C) 2007  Karl Robillard
4
5    This library is free software; you can redistribute it and/or
6    modify it under the terms of the GNU Lesser General Public
7    License as published by the Free Software Foundation; either
8    version 2.1 of the License, or (at your option) any later version.
9
10    This library is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13    Lesser General Public License for more details.
14
15    You should have received a copy of the GNU Lesser General Public
16    License along with this library; if not, write to the Free Software
17    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18===========================================================================*/
19
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25void    bignum_zero( UCell* );
26void    bignum_seti( UCell*, int n );
27void    bignum_setl( UCell*, int64_t n );
28void    bignum_setd( UCell*, double n );
29int64_t bignum_l( const UCell* );
30double  bignum_d( const UCell* );
31int     bignum_equal( const UCell*, const UCell* );
32int     bignum_cmp( const UCell*, const UCell* );
33void    bignum_negate( const UCell*, UCell* result );
34void    bignum_add( const UCell*, const UCell*, UCell* result );
35void    bignum_sub( const UCell*, const UCell*, UCell* result );
36void    bignum_mul( const UCell*, const UCell*, UCell* result );
37
38#ifdef __cplusplus
39}
40#endif
41
42
43/*EOF*/
Note: See TracBrowser for help on using the browser.