Skip to content

Commit e354788

Browse files
committed
use :word-size=64 for 64bit machine in test/
1 parent 605d923 commit e354788

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

test/bignum.l

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
(check-bignum #'equal #x1FFFFFFFFFFFFFFF #x2000000000000000 nil)
8686
(check-bignum #'equal #x2000000000000000 #x2000000000000001 nil)
8787

88-
#+(or :alpha :irix6 :x86_64 :aarch64)
88+
#+(or :alpha :irix6 :word-size=64)
8989
(progn
9090
;; bignum devide float / float devide bignum
9191
(check-bignum #'/ 10000000000000000000 1.0e+19 1.0)
@@ -100,7 +100,7 @@
100100
(check-bignum #'* 1.0e-19 -10000000000000000000 -1.0)
101101
)
102102

103-
#-(or :alpha :irix6 :x86_64 :aarch64)
103+
#-(or :alpha :irix6 :word-size=64)
104104
(progn
105105
;; bignum devide float / float devide bignum
106106
(check-bignum #'/ 10000000000000000000 1.0e+19 1.0)
@@ -118,7 +118,7 @@
118118
;;
119119
(check-bignum #'equal (elt #i(536870912) 0) #x20000000 t)
120120
(check-bignum #'equal (elt (integer-vector 536870912) 0) #x20000000 t)
121-
#+:x86_64
121+
#+:word-size=64
122122
(progn
123123
;;(check-bignum #'equal (elt #i(2305843009213693952) 0) #x2000000000000000 t)
124124
(check-bignum #'equal (elt (integer-vector 2305843009213693952) 0) #x2000000000000000 t)

test/mathtest.l

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@
4646

4747
;; random
4848
(assert (v= #i(123456 789012) *random-state*) "initial *random-state*")
49-
#+(or :alpha :irix6 :x86_64 :aarch64)
49+
#+(or :alpha :irix6 :word-size=64)
5050
(progn
5151
(assert (= 0 (random 10)) "random 10 (1)")
5252
(assert (= 3 (random 10)) "random 10 (2)")
5353
(assert (= 7 (random 10)) "random 10 (3)")
5454
(assert (= 2 (random 10)) "random 10 (4)")
5555
(assert (= 7 (random 10)) "random 10 (5)"))
56-
#-(or :alpha :irix6 :x86_64 :aarch64)
56+
#-(or :alpha :irix6 :word-size=64)
5757
(progn
5858
(assert (= 3 (random 10)) "random 10 (1)")
5959
(assert (= 2 (random 10)) "random 10 (2)")
@@ -62,14 +62,14 @@
6262
(assert (= 1 (random 10)) "random 10 (5)"))
6363

6464
(setq *random-state* #i(123456 789012))
65-
#+(or :alpha :irix6 :x86_64 :aarch64)
65+
#+(or :alpha :irix6 :word-size=64)
6666
(progn
6767
(assert (eps= 0.593532 (random 10.0) 0.01) "random 10.0 (1)")
6868
(assert (eps= 3.59535 (random 10.0) 0.01) "random 10.0 (2)")
6969
(assert (eps= 7.68644 (random 10.0) 0.01) "random 10.0 (3)")
7070
(assert (eps= 2.44015 (random 10.0) 0.01) "random 10.0 (4)")
7171
(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)
7373
(progn
7474
(assert (eps= 3.1918 (random 10.0) 0.01) "random 10.0 (1)")
7575
(assert (eps= 2.74391 (random 10.0) 0.01) "random 10.0 (2)")
@@ -82,9 +82,9 @@
8282
(assert (v= (make-random-state nil) #i(123456 789012)) "(make-random-state nil)")
8383
(assert (v= (make-random-state #i(11111 22222)) #i(11111 22222)) "(make-random-state #i(11111 22222))")
8484
(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)
8686
(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)
8888
(assert (= 3 (random 10 (make-random-state #i(123456 789012)))) "(random 10 (make-random-state #i(123456 789012)))")
8989

9090
;; normalize-vector

0 commit comments

Comments
 (0)