mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-20 14:19:17 +02:00
Adding TODO's
This commit is contained in:
parent
5f77e6de3d
commit
14a561a40f
1 changed files with 8 additions and 0 deletions
|
@ -1525,7 +1525,15 @@
|
||||||
"(void *data, int argc, closure _, object k, object n)"
|
"(void *data, int argc, closure _, object k, object n)"
|
||||||
" Cyc_get_ratio(data, k, n, 0);")
|
" Cyc_get_ratio(data, k, n, 0);")
|
||||||
|
|
||||||
|
;; TODO: integrate into quotient?
|
||||||
|
(define-c fixnum?
|
||||||
|
"(void *data, int argc, closure _, object k, object obj)"
|
||||||
|
" return_closcall1(data, k,
|
||||||
|
obj_is_int(obj) ? boolean_t : boolean_f); ")
|
||||||
|
|
||||||
(define (quotient x y)
|
(define (quotient x y)
|
||||||
|
;; TODO: if x and y are fixnums, do fast divide and return a fixnum
|
||||||
|
;; TODO: above good enough or are there special cases??
|
||||||
(truncate (/ x y)))
|
(truncate (/ x y)))
|
||||||
|
|
||||||
(define truncate-quotient quotient)
|
(define truncate-quotient quotient)
|
||||||
|
|
Loading…
Add table
Reference in a new issue