mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-18 21:29:18 +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)"
|
||||
" 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)
|
||||
;; 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)))
|
||||
|
||||
(define truncate-quotient quotient)
|
||||
|
|
Loading…
Add table
Reference in a new issue