File tree Expand file tree Collapse file tree 3 files changed +15
-15
lines changed Expand file tree Collapse file tree 3 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 129129 [fmod 0 ]
130130 [remainder 0 ])]))
131131
132- (for ([libm-impl.f32 (in-list libm-impls.f32)])
133- ( when libm-impl.f32
134- (platform-register-implementation! platform libm-impl.f32) ))
132+ (for ([libm-impl.f32 (in-list libm-impls.f32)]
133+ #: when libm-impl.f32)
134+ (platform-register-implementation! platform libm-impl.f32))
135135
136136;;;;;;;;;;;;;;;;;;;;;;;;;;;;; libm accelerators ;;;;;;;;;;;;;;;;;;;;;
137137
236236 [fmod 0 ]
237237 [remainder 0 ])]))
238238
239- (for ([libm-impl.f64 (in-list libm-impls.f64)])
240- ( when libm-impl.f64
241- (platform-register-implementation! platform libm-impl.f64) ))
239+ (for ([libm-impl.f64 (in-list libm-impls.f64)]
240+ #: when libm-impl.f64)
241+ (platform-register-implementation! platform libm-impl.f64))
242242
243243;;;;;;;;;;;;;;;;;;;;;;;;;;;;; libm accelerators ;;;;;;;;;;;;;;;;;;;;;
244244
Original file line number Diff line number Diff line change 142142 [fmod 94.277144 ]
143143 [remainder 16.165012 ])]))
144144
145- (for ([libm-impl.f64 (in-list libm-impls.f64)])
146- ( when libm-impl.f64
147- (platform-register-implementation! platform libm-impl.f64) ))
145+ (for ([libm-impl.f64 (in-list libm-impls.f64)]
146+ #: when libm-impl.f64)
147+ (platform-register-implementation! platform libm-impl.f64))
148148
149149;;;;;;;;;;;;;;;;;;;;;;;;;;;;; libm accelerators ;;;;;;;;;;;;;;;;;;;;;
150150
Original file line number Diff line number Diff line change 4848 (raise-syntax-error 'make-libm-impl why stx sub-stx))
4949
5050 (define (repr->type repr)
51- (let ([ sym (syntax-e repr)] )
52- (cond
53- [(eq? sym 'binary64 ) #'double ]
54- [(eq? sym 'binary32 ) #'float ]
55- [(eq? sym 'integer ) #'integer ]
56- [else (oops! "unknown type " repr)]) ))
51+ (define sym (syntax-e repr))
52+ (cond
53+ [(eq? sym 'binary64 ) #'double ]
54+ [(eq? sym 'binary32 ) #'float ]
55+ [(eq? sym 'integer ) #'integer ]
56+ [else (oops! "unknown type " repr)]))
5757
5858 (syntax-case stx ()
5959 [(_ cname (op name itype ... ) otype cost)
You can’t perform that action at this time.
0 commit comments