root/trunk/thune/bignum.h
| Revision 371, 1.6 kB (checked in by krobillard, 21 months ago) |
|---|
| 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 |
| 22 | extern "C" { |
| 23 | #endif |
| 24 | |
| 25 | void bignum_zero( UCell* ); |
| 26 | void bignum_seti( UCell*, int n ); |
| 27 | void bignum_setl( UCell*, int64_t n ); |
| 28 | void bignum_setd( UCell*, double n ); |
| 29 | int64_t bignum_l( const UCell* ); |
| 30 | double bignum_d( const UCell* ); |
| 31 | int bignum_equal( const UCell*, const UCell* ); |
| 32 | int bignum_cmp( const UCell*, const UCell* ); |
| 33 | void bignum_negate( const UCell*, UCell* result ); |
| 34 | void bignum_add( const UCell*, const UCell*, UCell* result ); |
| 35 | void bignum_sub( const UCell*, const UCell*, UCell* result ); |
| 36 | void 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.
