summaryrefslogtreecommitdiff
path: root/MLKInteger.h
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2008-08-04 18:18:41 +0200
committerMatthias Andreas Benkard <matthias@benkard.de>2008-08-04 18:18:41 +0200
commit90e6023292e2bfe927bd633bac42fc355bb9f4d1 (patch)
tree14664b9e9d98f43c83b78547ea7c554fef8de9d1 /MLKInteger.h
parent383e3e833a7fbb8b1560ba861b76e8be96542c6f (diff)
Add support for fixnums.
Diffstat (limited to 'MLKInteger.h')
-rw-r--r--MLKInteger.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/MLKInteger.h b/MLKInteger.h
index 25eea87..ce6d38a 100644
--- a/MLKInteger.h
+++ b/MLKInteger.h
@@ -19,6 +19,7 @@
#import "MLKNumber.h"
#include <stdarg.h>
+#include <stdint.h>
#include <stdio.h>
#include <gmp.h>
@@ -35,12 +36,19 @@
negative:(BOOL)negative
base:(unsigned int)base;
-(MLKInteger *) initWithInt:(int)intValue;
+-(MLKInteger *) initWithIntptr_t:(intptr_t)intptr_t_value;
+-(MLKInteger *) initWithFixnum:(id)fixnum;
+(MLKInteger *) integerWithMPZ:(mpz_t)mpz;
+(MLKInteger *) integerWithString:(NSString *)string
negative:(BOOL)negative
base:(unsigned int)base;
+(MLKInteger *) integerWithInt:(int)intValue;
++(MLKInteger *) integerWithIntptr_t:(intptr_t)intptr_t_value;
++(MLKInteger *) integerWithFixnum:(id)fixnum;
+
+-(BOOL) fitsIntoFixnum;
+-(id) fixnumValue;
-(int) intValue;
-(double) doubleValue;