Skip to content

Commit 73bbf29

Browse files
committed
Minor changes + bug fixes
1 parent 05401cd commit 73bbf29

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

eval/compile.rkt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
[(list '- x y) (list ival-sub! (alloc-outreg!) x y)]
7474
[(list '* x y) (list ival-mult! (alloc-outreg!) x y)]
7575
[(list '/ x y) (list ival-div! (alloc-outreg!) x y)]
76+
[(list 'hypot x y) (list ival-hypot! (alloc-outreg!) x y)]
7677
#;[(list '+ x y) (list ival-add x y)]
7778
#;[(list '- x y) (list ival-sub x y)]
7879
#;[(list '* x y) (list ival-mult x y)]

ops/all.rkt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
ival-sqrt
3232
ival-cbrt
3333
ival-hypot
34+
ival-hypot!
3435
ival-exp
3536
ival-exp2
3637
ival-expm1

ops/core.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@
351351
(define-values (tmp1 tmp2) (make-endpoint-pair))
352352
(define abs-lo (epunary! tmp1 mpfr-abs! (ival-lo x) 'up))
353353
(define abs-hi (epunary! tmp2 mpfr-abs! (ival-hi x) 'up))
354-
(ival (endpoint (bf 0) (and xlo! xhi!)) (endpoint-max2 abs-lo abs-hi 'nearest) xerr? xerr)]))
354+
(ival (endpoint (bf 0) (and xlo! xhi!)) (endpoint-max2 abs-lo abs-hi 'up) xerr? xerr)]))
355355

356356
;; These functions execute ival-fabs and ival-neg with input's precision
357357
(define (ival-max-prec x)

0 commit comments

Comments
 (0)