projects
/
mit-scheme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15691a7
)
Replace INT:INTEGER? by faster EXACT-INTEGER?
author
Stephen Adams
<edu/mit/csail/zurich/adams>
Wed, 2 Aug 1995 03:56:44 +0000
(
03:56
+0000)
committer
Stephen Adams
<edu/mit/csail/zurich/adams>
Wed, 2 Aug 1995 03:56:44 +0000
(
03:56
+0000)
v7/src/runtime/random.scm
patch
|
blob
|
history
diff --git
a/v7/src/runtime/random.scm
b/v7/src/runtime/random.scm
index 925c12beb235b0b1f32fd6f72a022e8920a67161..47831f926cedff57a80fb0ba974d984cb812442c 100644
(file)
--- a/
v7/src/runtime/random.scm
+++ b/
v7/src/runtime/random.scm
@@
-1,6
+1,6
@@
#| -*-Scheme-*-
-$Id: random.scm,v 14.1
2 1995/07/19 05:22:08 cph
Exp $
+$Id: random.scm,v 14.1
3 1995/08/02 03:56:44 adams
Exp $
Copyright (c) 1993-95 Massachusetts Institute of Technology
@@
-69,7
+69,7
@@
MIT in each case. |#
;; integer. Otherwise, the result is a real number.
(cond ((flo:flonum? modulus)
(flo:* element modulus))
- ((
int:
integer? modulus)
+ ((
exact-
integer? modulus)
(flo:truncate->exact (flo:* element (int:->flonum modulus))))
(else
(* (inexact->exact element) modulus)))))