Skip to content

Commit

Permalink
Added TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
justinethier committed Jan 6, 2024
1 parent 8875c53 commit 92d5d80
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scheme/base.sld
Original file line number Diff line number Diff line change
Expand Up @@ -1535,6 +1535,11 @@
;; 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)))
;; TODO: something like this, but do we want inline?
;;(let ((result (/ x y)))
;; (if (and (fixnum? x) (fixnum? y))
;; (exact (truncate result))
;; (truncate result))))

(define truncate-quotient quotient)
(define truncate-remainder remainder)
Expand Down

0 comments on commit 92d5d80

Please sign in to comment.