|
46 | 46 |
|
47 | 47 | ;; random
|
48 | 48 | (assert (v= #i(123456 789012) *random-state*) "initial *random-state*")
|
49 |
| -#+(or :alpha :irix6 :x86_64 :aarch64) |
| 49 | +#+(or :alpha :irix6 :word-size=64) |
50 | 50 | (progn
|
51 | 51 | (assert (= 0 (random 10)) "random 10 (1)")
|
52 | 52 | (assert (= 3 (random 10)) "random 10 (2)")
|
53 | 53 | (assert (= 7 (random 10)) "random 10 (3)")
|
54 | 54 | (assert (= 2 (random 10)) "random 10 (4)")
|
55 | 55 | (assert (= 7 (random 10)) "random 10 (5)"))
|
56 |
| -#-(or :alpha :irix6 :x86_64 :aarch64) |
| 56 | +#-(or :alpha :irix6 :word-size=64) |
57 | 57 | (progn
|
58 | 58 | (assert (= 3 (random 10)) "random 10 (1)")
|
59 | 59 | (assert (= 2 (random 10)) "random 10 (2)")
|
|
62 | 62 | (assert (= 1 (random 10)) "random 10 (5)"))
|
63 | 63 |
|
64 | 64 | (setq *random-state* #i(123456 789012))
|
65 |
| -#+(or :alpha :irix6 :x86_64 :aarch64) |
| 65 | +#+(or :alpha :irix6 :word-size=64) |
66 | 66 | (progn
|
67 | 67 | (assert (eps= 0.593532 (random 10.0) 0.01) "random 10.0 (1)")
|
68 | 68 | (assert (eps= 3.59535 (random 10.0) 0.01) "random 10.0 (2)")
|
69 | 69 | (assert (eps= 7.68644 (random 10.0) 0.01) "random 10.0 (3)")
|
70 | 70 | (assert (eps= 2.44015 (random 10.0) 0.01) "random 10.0 (4)")
|
71 | 71 | (assert (eps= 7.26136 (random 10.0) 0.01) "random 10.0 (5)"))
|
72 |
| -#-(or :alpha :irix6 :x86_64 :aarch64) |
| 72 | +#-(or :alpha :irix6 :word-size=64) |
73 | 73 | (progn
|
74 | 74 | (assert (eps= 3.1918 (random 10.0) 0.01) "random 10.0 (1)")
|
75 | 75 | (assert (eps= 2.74391 (random 10.0) 0.01) "random 10.0 (2)")
|
|
82 | 82 | (assert (v= (make-random-state nil) #i(123456 789012)) "(make-random-state nil)")
|
83 | 83 | (assert (v= (make-random-state #i(11111 22222)) #i(11111 22222)) "(make-random-state #i(11111 22222))")
|
84 | 84 | (assert (not (v= (make-random-state t) #i(123456 789012))) "(make-random-state t)")
|
85 |
| -#+(or :alpha :irix6 :x86_64 :aarch64) |
| 85 | +#+(or :alpha :irix6 :word-size=64) |
86 | 86 | (assert (= 0 (random 10 (make-random-state #i(123456 789012)))) "(random 10 (make-random-state #i(123456 789012)))")
|
87 |
| -#-(or :alpha :irix6 :x86_64 :aarch64) |
| 87 | +#-(or :alpha :irix6 :word-size=64) |
88 | 88 | (assert (= 3 (random 10 (make-random-state #i(123456 789012)))) "(random 10 (make-random-state #i(123456 789012)))")
|
89 | 89 |
|
90 | 90 | ;; normalize-vector
|
|
0 commit comments