|
176 | 176 | [<=.p8 #:spec (<= x y) #:impl posit8<= #:cost 1] |
177 | 177 | [>=.p8 #:spec (>= x y) #:impl posit8>= #:cost 1]) |
178 | 178 |
|
179 | | -(define-operations ([x <posit8>]) <posit8> #:fpcore (:precision posit8) |
| 179 | +(define-operations ([x <posit8>]) <posit8> #:fpcore (! :precision posit8 _) |
180 | 180 | [neg.p8 #:spec (neg x) #:impl posit8-neg #:fpcore (- x) #:cost 1] |
181 | 181 | [sqrt.p8 #:spec (sqrt x) #:impl posit8-sqrt #:cost 1]) |
182 | 182 |
|
183 | | -(define-operations ([x <posit8>] [y <posit8>]) <posit8> #:fpcore (:precision posit8) |
| 183 | +(define-operations ([x <posit8>] [y <posit8>]) <posit8> #:fpcore (! :precision posit8 _) |
184 | 184 | [+.p8 #:spec (+ x y) #:impl posit8-add #:cost 1] |
185 | 185 | [-.p8 #:spec (- x y) #:impl posit8-sub #:cost 1] |
186 | 186 | [*.p8 #:spec (* x y) #:impl posit8-mul #:cost 1] |
|
193 | 193 | [<=.p16 #:spec (<= x y) #:impl posit16<= #:cost 1] |
194 | 194 | [>=.p16 #:spec (>= x y) #:impl posit16>= #:cost 1]) |
195 | 195 |
|
196 | | -(define-operations ([x <posit16>]) <posit16> #:fpcore (:precision posit16) |
| 196 | +(define-operations ([x <posit16>]) <posit16> #:fpcore (! :precision posit16 _) |
197 | 197 | [neg.p16 #:spec (neg x) #:impl posit16-neg #:fpcore (- x) #:cost 1] |
198 | 198 | [sqrt.p16 #:spec (sqrt x) #:impl posit16-sqrt #:cost 1]) |
199 | 199 |
|
200 | | -(define-operations ([x <posit16>] [y <posit16>]) <posit16> #:fpcore (:precision posit16) |
| 200 | +(define-operations ([x <posit16>] [y <posit16>]) <posit16> #:fpcore (! :precision posit16 _) |
201 | 201 | [+.p16 #:spec (+ x y) #:impl posit16-add #:cost 1] |
202 | 202 | [-.p16 #:spec (- x y) #:impl posit16-sub #:cost 1] |
203 | 203 | [*.p16 #:spec (* x y) #:impl posit16-mul #:cost 1] |
|
210 | 210 | [<=.p32 #:spec (<= x y) #:impl posit32<= #:cost 1] |
211 | 211 | [>=.p32 #:spec (>= x y) #:impl posit32>= #:cost 1]) |
212 | 212 |
|
213 | | -(define-operations ([x <posit32>]) <posit32> #:fpcore (:precision posit32) |
| 213 | +(define-operations ([x <posit32>]) <posit32> #:fpcore (! :precision posit32 _) |
214 | 214 | [neg.p32 #:spec (neg x) #:impl posit32-neg #:fpcore (- x) #:cost 1] |
215 | 215 | [sqrt.p32 #:spec (sqrt x) #:impl posit32-sqrt #:cost 1]) |
216 | 216 |
|
217 | | -(define-operations ([x <posit32>] [y <posit32>]) <posit32> #:fpcore (:precision posit32) |
| 217 | +(define-operations ([x <posit32>] [y <posit32>]) <posit32> #:fpcore (! :precision posit32 _) |
218 | 218 | [+.p32 #:spec (+ x y) #:impl posit32-add #:cost 1] |
219 | 219 | [-.p32 #:spec (- x y) #:impl posit32-sub #:cost 1] |
220 | 220 | [*.p32 #:spec (* x y) #:impl posit32-mul #:cost 1] |
|
226 | 226 | (define-representation <quire16> #:cost 1) |
227 | 227 | (define-representation <quire32> #:cost 1) |
228 | 228 |
|
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 _) |
230 | 230 | [quire8-mul-add #:spec (+ x (* y z)) #:impl quire8-fdp-add #:fpcore (fdp x y z) #:cost 1] |
231 | 231 | [quire8-mul-sub #:spec (- x (* y z)) #:impl quire8-fdp-sub #:fpcore (fds x y z) #:cost 1]) |
232 | 232 |
|
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 _) |
234 | 234 | [quire16-mul-add #:spec (+ x (* y z)) #:impl quire16-fdp-add #:fpcore (fdp x y z) #:cost 1] |
235 | 235 | [quire16-mul-sub #:spec (- x (* y z)) #:impl quire16-fdp-sub #:fpcore (fds x y z) #:cost 1]) |
236 | 236 |
|
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 _) |
238 | 238 | [quire32-mul-add #:spec (+ x (* y z)) #:impl quire32-fdp-add #:fpcore (fdp x y z) #:cost 1] |
239 | 239 | [quire32-mul-sub #:spec (- x (* y z)) #:impl quire32-fdp-sub #:fpcore (fds x y z) #:cost 1]) |
240 | 240 |
|
|
0 commit comments