Skip to content

Commit 9fc7f1c

Browse files
committed
Fix softposit platform, too
1 parent 34e97a9 commit 9fc7f1c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

infra/softposit.rkt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,11 @@
176176
[<=.p8 #:spec (<= x y) #:impl posit8<= #:cost 1]
177177
[>=.p8 #:spec (>= x y) #:impl posit8>= #:cost 1])
178178

179-
(define-operations ([x <posit8>]) <posit8> #:fpcore (:precision posit8)
179+
(define-operations ([x <posit8>]) <posit8> #:fpcore (! :precision posit8 _)
180180
[neg.p8 #:spec (neg x) #:impl posit8-neg #:fpcore (- x) #:cost 1]
181181
[sqrt.p8 #:spec (sqrt x) #:impl posit8-sqrt #:cost 1])
182182

183-
(define-operations ([x <posit8>] [y <posit8>]) <posit8> #:fpcore (:precision posit8)
183+
(define-operations ([x <posit8>] [y <posit8>]) <posit8> #:fpcore (! :precision posit8 _)
184184
[+.p8 #:spec (+ x y) #:impl posit8-add #:cost 1]
185185
[-.p8 #:spec (- x y) #:impl posit8-sub #:cost 1]
186186
[*.p8 #:spec (* x y) #:impl posit8-mul #:cost 1]
@@ -193,11 +193,11 @@
193193
[<=.p16 #:spec (<= x y) #:impl posit16<= #:cost 1]
194194
[>=.p16 #:spec (>= x y) #:impl posit16>= #:cost 1])
195195

196-
(define-operations ([x <posit16>]) <posit16> #:fpcore (:precision posit16)
196+
(define-operations ([x <posit16>]) <posit16> #:fpcore (! :precision posit16 _)
197197
[neg.p16 #:spec (neg x) #:impl posit16-neg #:fpcore (- x) #:cost 1]
198198
[sqrt.p16 #:spec (sqrt x) #:impl posit16-sqrt #:cost 1])
199199

200-
(define-operations ([x <posit16>] [y <posit16>]) <posit16> #:fpcore (:precision posit16)
200+
(define-operations ([x <posit16>] [y <posit16>]) <posit16> #:fpcore (! :precision posit16 _)
201201
[+.p16 #:spec (+ x y) #:impl posit16-add #:cost 1]
202202
[-.p16 #:spec (- x y) #:impl posit16-sub #:cost 1]
203203
[*.p16 #:spec (* x y) #:impl posit16-mul #:cost 1]
@@ -210,11 +210,11 @@
210210
[<=.p32 #:spec (<= x y) #:impl posit32<= #:cost 1]
211211
[>=.p32 #:spec (>= x y) #:impl posit32>= #:cost 1])
212212

213-
(define-operations ([x <posit32>]) <posit32> #:fpcore (:precision posit32)
213+
(define-operations ([x <posit32>]) <posit32> #:fpcore (! :precision posit32 _)
214214
[neg.p32 #:spec (neg x) #:impl posit32-neg #:fpcore (- x) #:cost 1]
215215
[sqrt.p32 #:spec (sqrt x) #:impl posit32-sqrt #:cost 1])
216216

217-
(define-operations ([x <posit32>] [y <posit32>]) <posit32> #:fpcore (:precision posit32)
217+
(define-operations ([x <posit32>] [y <posit32>]) <posit32> #:fpcore (! :precision posit32 _)
218218
[+.p32 #:spec (+ x y) #:impl posit32-add #:cost 1]
219219
[-.p32 #:spec (- x y) #:impl posit32-sub #:cost 1]
220220
[*.p32 #:spec (* x y) #:impl posit32-mul #:cost 1]
@@ -226,15 +226,15 @@
226226
(define-representation <quire16> #:cost 1)
227227
(define-representation <quire32> #:cost 1)
228228

229-
(define-operations ([x <quire8>] [y <posit8>] [z <posit8>]) <quire8> #:fpcore (:precision quire8)
229+
(define-operations ([x <quire8>] [y <posit8>] [z <posit8>]) <quire8> #:fpcore (! :precision quire8 _)
230230
[quire8-mul-add #:spec (+ x (* y z)) #:impl quire8-fdp-add #:fpcore (fdp x y z) #:cost 1]
231231
[quire8-mul-sub #:spec (- x (* y z)) #:impl quire8-fdp-sub #:fpcore (fds x y z) #:cost 1])
232232

233-
(define-operations ([x <quire16>] [y <posit16>] [z <posit16>]) <quire16> #:fpcore (:precision quire16)
233+
(define-operations ([x <quire16>] [y <posit16>] [z <posit16>]) <quire16> #:fpcore (! :precision quire16 _)
234234
[quire16-mul-add #:spec (+ x (* y z)) #:impl quire16-fdp-add #:fpcore (fdp x y z) #:cost 1]
235235
[quire16-mul-sub #:spec (- x (* y z)) #:impl quire16-fdp-sub #:fpcore (fds x y z) #:cost 1])
236236

237-
(define-operations ([x <quire32>] [y <posit32>] [z <posit32>]) <quire32> #:fpcore (:precision quire32)
237+
(define-operations ([x <quire32>] [y <posit32>] [z <posit32>]) <quire32> #:fpcore (! :precision quire32 _)
238238
[quire32-mul-add #:spec (+ x (* y z)) #:impl quire32-fdp-add #:fpcore (fdp x y z) #:cost 1]
239239
[quire32-mul-sub #:spec (- x (* y z)) #:impl quire32-fdp-sub #:fpcore (fds x y z) #:cost 1])
240240

0 commit comments

Comments
 (0)