Skip to content

Commit 103712d

Browse files
committed
minor changes
1 parent c7ba810 commit 103712d

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

src/config.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@
161161
(define *default-precision* (make-parameter 'binary64))
162162

163163
;; The platform that Herbie will evaluate with.
164-
(define *platform-name* (make-parameter "c-linux"))
164+
(define *platform-name* (make-parameter "c"))
165165

166166
;; Plugins loaded locally rather than through Racket.
167167
(define *loose-plugins* (make-parameter '()))

src/platforms/c-windows.rkt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
(define boolean-move-cost 0.1)
1717

1818
(define platform
19-
(make-empty-platform 'c #:if-cost boolean-move-cost))
19+
(make-empty-platform 'c-windows #:if-cost boolean-move-cost))
2020

2121
;;;;;;;;;;;;;;;;;;;;;;;;;;;;; BOOLEAN ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2222

@@ -132,7 +132,6 @@
132132
([erfc.f32 ([x : binary32]) binary32 (- 1 (erf x)) (from-libm 'erfcf) (! :precision binary32 (erfc x)) 0.907758]
133133
[expm1.f32 ([x : binary32]) binary32 (- (exp x) 1) (from-libm 'expm1f) (! :precision binary32 (expm1 x)) 0.906484]
134134
[log1p.f32 ([x : binary32]) binary32 (log (+ 1 x)) (from-libm 'log1pf) (! :precision binary32 (log1p x)) 1.302969]
135-
[hypot.f32 ([x : binary32] [y : binary32]) binary32 (sqrt (+ (* x x) (* y y))) (from-libm 'hypotf) (! :precision binary32 (hypot x y)) 1.6816069999999997]
136135
[fma.f32 ([x : binary32] [y : binary32] [z : binary32]) binary32 (+ (* x y) z) (from-libm 'fmaf) (! :precision binary32 (fma x y z)) 0.38934]))
137136

138137
;;;;;;;;;;;;;;;;;;;;;;;;;;;;; BINARY 64 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

src/platforms/c-linux.rkt renamed to src/platforms/c.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
(define boolean-move-cost 0.1)
1717

1818
(define platform
19-
(make-empty-platform 'c #:if-cost boolean-move-cost))
19+
(make-empty-platform 'c-linux #:if-cost boolean-move-cost))
2020

2121
;;;;;;;;;;;;;;;;;;;;;;;;;;;;; BOOLEAN ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2222

src/syntax/load-platform.rkt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
(define-runtime-module-path herbie10-platform "../platforms/herbie10.rkt")
99
(define-runtime-module-path herbie20-platform "../platforms/herbie20.rkt")
10-
(define-runtime-module-path c-linux-platform "../platforms/c-linux.rkt")
10+
(define-runtime-module-path c-platform "../platforms/c.rkt")
1111
(define-runtime-module-path c-windows-platform "../platforms/c-windows.rkt")
1212
(define-runtime-module-path racket-platform "../platforms/racket.rkt")
1313
(define-runtime-module-path math-platform "../platforms/math.rkt")
@@ -18,8 +18,8 @@
1818
herbie10-platform
1919
"herbie20"
2020
herbie20-platform
21-
"c-linux"
22-
c-linux-platform
21+
"c"
22+
c-platform
2323
"c-windows"
2424
c-windows-platform
2525
"racket"

0 commit comments

Comments
 (0)