Added (bignum?)

This commit is contained in:
Justin Ethier 2017-02-11 17:41:30 -05:00
parent a6cbce207c
commit 371b4630eb

View file

@ -1078,6 +1078,9 @@
(if (>= res 0) res (+ res b)))))
(define (odd? num) (= (modulo num 2) 1))
(define (even? num) (= (modulo num 2) 0))
(define-c bignum?
"(void *data, int argc, closure _, object k, object obj)"
" return_closcall1(data, k, Cyc_is_bignum(obj)); ")
;; from mosh
(define (exact-integer-sqrt k)
(unless (and (exact? k)