* Added a $bignums library that's now just holding the names of
primitive bignum functions.
This commit is contained in:
parent
2ee587d26d
commit
e3bb91ad08
BIN
src/ikarus.boot
BIN
src/ikarus.boot
Binary file not shown.
|
@ -423,13 +423,6 @@
|
||||||
(cond
|
(cond
|
||||||
[(not sep)
|
[(not sep)
|
||||||
(output-rest-multi box* '(#f . #f) p col left)]
|
(output-rest-multi box* '(#f . #f) p col left)]
|
||||||
#;[(fx<= (fx+ (sum box*) col) (pretty-width))
|
|
||||||
(let g ([box* box*] [p p] [col col])
|
|
||||||
(cond
|
|
||||||
[(null? box*) col]
|
|
||||||
[else
|
|
||||||
(display " " p)
|
|
||||||
(g (cdr box*) p (f (car box*) p (fxadd1 col)))]))]
|
|
||||||
[else
|
[else
|
||||||
(let g ([box* box*] [p p] [left (fx+ left sep)] [col col])
|
(let g ([box* box*] [p p] [left (fx+ left sep)] [col col])
|
||||||
(cond
|
(cond
|
||||||
|
|
|
@ -98,7 +98,6 @@
|
||||||
(write-char #\) p)
|
(write-char #\) p)
|
||||||
i))))
|
i))))
|
||||||
|
|
||||||
|
|
||||||
(define write-record
|
(define write-record
|
||||||
(lambda (x p m h i)
|
(lambda (x p m h i)
|
||||||
(write-char #\# p)
|
(write-char #\# p)
|
||||||
|
|
|
@ -118,6 +118,7 @@
|
||||||
[$chars (ikarus system $chars) #f]
|
[$chars (ikarus system $chars) #f]
|
||||||
[$strings (ikarus system $strings) #f]
|
[$strings (ikarus system $strings) #f]
|
||||||
[$vectors (ikarus system $vectors) #f]
|
[$vectors (ikarus system $vectors) #f]
|
||||||
|
[$bignums (ikarus system $bignums) #f]
|
||||||
[$bytes (ikarus system $bytevectors) #f]
|
[$bytes (ikarus system $bytevectors) #f]
|
||||||
[$fx (ikarus system $fx) #f]
|
[$fx (ikarus system $fx) #f]
|
||||||
[$symbols (ikarus system $symbols) #f]
|
[$symbols (ikarus system $symbols) #f]
|
||||||
|
@ -132,7 +133,6 @@
|
||||||
[$boot (ikarus system $bootstrap) #f]
|
[$boot (ikarus system $bootstrap) #f]
|
||||||
))
|
))
|
||||||
|
|
||||||
|
|
||||||
(define bootstrap-collection
|
(define bootstrap-collection
|
||||||
(let ([ls (map
|
(let ([ls (map
|
||||||
(lambda (x)
|
(lambda (x)
|
||||||
|
@ -499,6 +499,11 @@
|
||||||
[$bytevector-u8-ref $bytes]
|
[$bytevector-u8-ref $bytes]
|
||||||
[$bytevector-set! $bytes]
|
[$bytevector-set! $bytes]
|
||||||
|
|
||||||
|
[$make-bignum $bignums]
|
||||||
|
[$bignum-sign $bignums]
|
||||||
|
[$bignum-size $bignums]
|
||||||
|
[$bignum-byte-ref $bignums]
|
||||||
|
[$bignum-byte-set! $bignums]
|
||||||
|
|
||||||
[$make-vector $vectors]
|
[$make-vector $vectors]
|
||||||
[$vector-length $vectors]
|
[$vector-length $vectors]
|
||||||
|
|
Loading…
Reference in New Issue